简体   繁体   English

当应用程序在后台或终止时,推送通知未进入 IOS 设备。 在 Flutter 的 IOS 设备中导航到下一个屏幕也不起作用?

[英]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.

相关问题 Flutter 应用程序 Firebase 推送通知不在后台出现 - Flutter App Firebase push notification not coming in background Laravel 5将推送通知发送到android和ios设备 - Laravel 5 send push notification to android and ios device Flutter sqflite 应用程序无法在真正的 ios 设备上运行 - Flutter sqflite app does not working on real ios device 应用程序处于前台时未收到推送通知 ios flutter - Push Notification not received when app is in foreground ios flutter 在Android和iOS设备中基于用户并结合设备和应用ID的推送通知 - push notification based on users with combination of device and app id in android and iOS devices Parse.com将推送通知发送到多种设备类型,即Android和iOS无法正常工作 - Parse.com sending push notification to multiple device types i.e Android and iOS not working 推送通知到达ios(apns),但不到达android(gcm)设备 - Push notification reaching ios (apns) but not android (gcm) device 在iOS和Android中使用亚马逊设备消息传递(推送通知服务) - Use of amazon device messaging (push notification service) in both iOS and Android 当应用程序在后台时,Cordova推送通知不起作用 - Cordova push notification not working when app is in background 设备上没有通知,但应用程序中有通知-Android推送通知 - no notification on device but there is notification in app -Android push notifications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM