[英]Push notification not coming in IOS device when app in background or kill. Navigate to next screen also not working In IOS device in Flutter?
Push notification not coming in IOS device when app in background or destroy.当应用程序在后台或销毁时,推送通知未进入 IOS 设备。 Navigate to another screen is also not working in IOS device.
导航到另一个屏幕在 IOS 设备中也不起作用。 All things are working properly in Android device Here is My Code::-Main.dart https://gist.github.com/phenomenal25/87f5e9a8564b834129033c1e6e513a17
在 Android 设备上一切正常 这是我的代码 ::-Main.dart https://gist.github.com/phenomenal25/87f5e9a8564b834129033c1e6e513a17
Hi guys i found the answer of this大家好,我找到了这个答案
Push Notification comes only (in IOS device) when your app in background or terminated the system tray will not give the notification when you passing custom data on this.推送通知仅在您的应用程序在后台或终止时(在 IOS 设备中)出现,当您传递自定义数据时,系统托盘不会发出通知。 Message is stored by FCM and delivered to app via onMessage when the app is brought back to foreground.
消息由 FCM 存储并在应用程序返回前台时通过 onMessage 传递给应用程序。
Check out your info.plist, the below code is added or not.查看您的 info.plist,是否添加了以下代码。
<key>FirebaseAppDelegateProxyEnabled</key>
<false/>
Note: Test in the real device, not in the simulator.注意:在真实设备中测试,而不是在模拟器中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.