- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当更新版本提交到 Google Play 商店时,我们被要求对我们的 react native 应用程序进行更改。突出显示的问题是“Intent 重定向”漏洞。这是遗留代码,但尽管如此,迟到总比没有好。
Google 帮助中建议的方法之一 guide这是:
Option 2: Ensure that the extracted Intent is from a trustworthy source.
You can verify that the originating Activity can be trusted using methods like >getCallingActivity. For example:
// check if the originating Activity is from trusted package
if (getCallingActivity().getPackageName().equals(“known”)) {
Intent intent = getIntent();
// extract the nested Intent
Intent forward = (Intent) intent.getParcelableExtra(“key”);
// redirect the nested Intent
startActivity(forward);
}
根据本指南更改代码时,构建显示错误
getCallingActivity
不是一个已知的符号。该代码已使用
getCurrentActivity
和
getApplicationContext
.
最佳答案
RazorPay 发布了一个新版本。请点击以下链接了解更多信息。
https://github.com/razorpay/react-native-razorpay/issues/291
关于android - React Native( Intent 重定向修复): What's the equivalent of getCallingActivity() to check for malicious redirection?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64011029/
我有一个欢迎屏幕,它可以作为我应用程序中的第一个 Activity 启动,也可以由用户花费时间的主要 Activity 启动。我希望它在从家里启动时表现得略有不同屏幕(或任何其他应用程序)或主要 Ac
我想将调用 Activity 与其他 Activity 进行比较,以了解哪个 Activity 调用了当前 Activity 。我试过: getCallingActivity().getClassNa
当更新版本提交到 Google Play 商店时,我们被要求对我们的 react native 应用程序进行更改。突出显示的问题是“Intent 重定向”漏洞。这是遗留代码,但尽管如此,迟到总比没有好
我是一名优秀的程序员,十分优秀!