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