[英]Will Phonegap or Cordova apps receive push notifications when app not opened?
I have serious doubt. 我有严重的疑问。 If Phonegap(or Cordova) apps won't run in background how can I get the GCM/FCM push notifications when my app is not in use or not opened ? 如果Phonegap(或Cordova)应用程序无法在后台运行,当我的应用程序未使用或未打开时,如何获取GCM / FCM推送通知?
Is there any way to solve this problem ? 有什么办法解决这个问题?
What is Chrome push notifications, can I use that with Phonegap apps ? 什么是Chrome推送通知,我可以在Phonegap应用中使用它吗?
Using Cordova plugin FCM , your push notifications will work when app is open or closed. 使用Cordova插件FCM ,您的推送通知将在应用打开或关闭时起作用。 Both on Android and iOS. 在Android和iOS上都可以。
Your app does not need to be running in the background to receive push notifications. 您的应用程序并不需要在后台运行,以接收推送通知。
1. You will receive the push notification it don't matter that your application is running or not , That is the advantage of the push notification. 1.无论您的应用程序是否运行,您都将收到推送通知,这是推送通知的优势。
2. You can use this Push plugin for your cordova/phonegap application so your application can receive push notification from any 3rd party server. 2.您可以在您的cordova / phonegap应用程序中使用此Push插件 ,以便您的应用程序可以从任何第三方服务器接收推送通知。
3. Chrome push notifications is the notification you will receive on desktop or on mobile if you have the chrome installed it has nothing to do with cordova application. 3. Chrome推送通知是您在台式机或移动设备上收到的通知(如果您安装了Chrome),它与cordova应用程序无关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.