简体   繁体   English

未打开应用程序时,Phonegap或Cordova应用程序会收到推送通知吗?

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

相关问题 PhoneGap / Cordova应用程序通知 - PhoneGap/Cordova app notifications 即使应用程序在后台,Cordova / Phonegap也会接收推送数据 - Cordova / Phonegap receive push data even if app is in background 应用被杀死时接收PubNub推送通知 - Receive PubNub Push Notifications when app is killed 即使应用程序被杀死,whatsapp、messenger 和其他非常著名的消息传递应用程序如何接收推送通知? - How does whatsapp, messenger and other very famous messaging apps receive push notifications even when app is killed? 没有服务器的Cordova / PhoneGap推送通知 - Cordova / PhoneGap push notifications without a server 在后台运行应用程序时,未发送Android上的Apigee推送通知(Phonegap) - Apigee push notifications on Android not delivered when app in background (Phonegap) 当应用程序打开时,推送通知不显示pushwoosh-Phonegap - Push notifications not showing when app is open pushwoosh - Phonegap 应用程序被杀死时是否可以接收 FCM 推送通知? - Is it possible to receive FCM push notifications when app is killed? 应用程式被杀死时,Android无法接收到解析推送通知 - Unable tor receive parse push notifications when app is killed Android 如何在Cordova / Phonegap Android应用程序中使用Parse.com推送通知? - How do I get Parse.com Push Notifications working in a Cordova/Phonegap Android app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM