android - Android Firebase Push Notification Bundle data issue
问题描述
After sending a notification to my application then when I tap to the notification bar it goes to the MainActivity with Bundle data.
But after exit from the application then when I enter the application by tapping app_launcher_icon the application gets the previous notification Bundle data.
Now how to solve this issue.
解决方案
使用后清除意图数据
getIntent().setData(null);
推荐阅读
- java - Sentry 初始化崩溃并出现 NoSuchMethodError 试图找到 jdk.internal.reflect.Reflection.registerMethodsToFilter
- c++ - 为什么在比较 int 和 enum 时重叠比较总是评估为真?
- typescript - 带有 TypeScript 的 fastify-cors 插件:'origin' 未定义
- bash - 某些命令在从 crontab -e 运行的脚本中不起作用
- android - 如何将数据存储 api 与 jetpack compose 一起使用?
- reactjs - 反应日志运行两次
- asp.net-core - asp.net 发送带有 excel 附件的电子邮件
- javascript - 浏览器似乎与 Firestore onAuthStateChanged Web Javascript 循环
- c++ - 在类和构造函数中从用户获取整数输入时无法正确使用运算符 [OOP]
- python - 从 1 列中提取数据