Push notification 使用FCM服务时Firebase通知无法正常工作
有时FCM发送消息,有时设备上出现延迟或从未收到。Push notification 使用FCM服务时Firebase通知无法正常工作,push-notification,notifications,firebase-cloud-messaging,google-cloud-firestore,android-notifications,Push Notification,Notifications,Firebase Cloud Messaging,Google Cloud Firestore,Android Notifications,有时FCM发送消息,有时设备上出现延迟或从未收到。 如果FCM不可靠,请建议推送通知的替代方案。FCM在以下设备上创建通知问题 连接到Xcode的iPhone 6收到通知 运行testflight版本的iPhone 6收到通知 运行app store版本的iPhone 6收到通知 连接到Xcode的iPhone 6 Plus会收到通知 运行testflight版本的iPhone 6 Plus会收到通知 iPhone 6 Plus正在运行的应用商店版本收到通知 运行testflight版本的iP
如果FCM不可靠,请建议推送通知的替代方案。FCM在以下设备上创建通知问题
- 连接到Xcode的iPhone 6收到通知
- 运行testflight版本的iPhone 6收到通知
- 运行app store版本的iPhone 6收到通知
- 连接到Xcode的iPhone 6 Plus会收到通知
- 运行testflight版本的iPhone 6 Plus会收到通知
- iPhone 6 Plus正在运行的应用商店版本收到通知
- 运行testflight版本的iPhone X未收到
{"message": {"token" : "eANw_OLOKXc:APA.....XsMg", "notification":{"title":"xxx","body":"xxx"},"data" : {"content" : "2546|N|495....arg|BATTERY|||||"}}}
为了提高网络使用率,FCM服务会批量响应on MessageSent()和on SendError(),因此对每条消息的确认可能不会很快。如果您在此处共享代码和方法,效果会更好。
{"message": {"token" : "eANw_OLOKXc:APA.....XsMg", "notification":{"title":"xxx","body":"xxx"},"data" : {"content" : "2546|N|495....arg|BATTERY|||||"}}}