简体   繁体   English

Ionic + Cordova:系统重新启动后如何接收推送通知?

[英]Ionic + Cordova : How to receive the push notifications after the system reboot?

I'm using the Ionic push notifications integration for the Android and iOS. 我正在为Android和iOS使用Ionic推送通知集成。

I just switched from debug mode into production (see link: http://docs.ionic.io/docs/push-full-setup ). 我只是从调试模式切换到生产环境(请参阅链接: http : //docs.ionic.io/docs/push-full-setup )。 I am able to receive the push notifications if application is running in the background. 如果应用程序在后台运行,我将能够收到推送通知。 But when the device is rebooted and the push notification is send, device will not receive the push notification until the app is started. 但是,当设备重新启动并发送推送通知时,设备将不会收到推送通知,直到应用程序启动为止。

I would like to ask that is possible solve this situation and how? 我想请问有可能解决这种情况吗?

Many thanks for any advice. 非常感谢您的任何建议。

I've had a similar problem in a project and fixed it by referencing APN & GCM directly on server side and switching to a plugin ( https://github.com/phonegap/phonegap-plugin-push ) instead of Ionic Push. 我在项目中遇到过类似的问题,并通过直接在服务器端引用APN和GCM并切换到插件( https://github.com/phonegap/phonegap-plugin-push )而不是Ionic Push来解决此问题。 Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从离子移动应用程序发送/接收推送通知? - How to send/receive push notifications from ionic mobile app? Android 设备重启后推送通知 - Android push notifications after device reboot 未打开应用程序时,Phonegap或Cordova应用程序会收到推送通知吗? - Will Phonegap or Cordova apps receive push notifications when app not opened? 设备重启后不出现Android onesignal推送通知 - Android onesignal push notifications do not appear after device reboot 重新启动后,Urban Airship推送通知是否应继续存在? - Are Urban Airship push notifications supposed to persist after reboot? 重启后如何发送通知? - How to send notifications even after reboot? Ionic Cordova:Push Notification插件onMessage接收消息。 - Ionic Cordova : Push Notification plugin onMessage receive message. 如何在Cordova平台中实现推送通知? - How to implement push notifications in Cordova Platform? 如何在Cordova应用程序中使用推送通知? - How to use push notifications in cordova app? Cordova Ionic App - 推送通知不适用于 Android 12 和 Android 13 - cordova-android 11.0 - Cordova Ionic App - Push Notifications not working on Android 12 & Android 13 - cordova-android 11.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM