简体   繁体   中英

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 ?

Is there any way to solve this problem ?

What is Chrome push notifications, can I use that with Phonegap apps ?

Using Cordova plugin FCM , your push notifications will work when app is open or closed. Both on Android and 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.

2. You can use this Push plugin for your cordova/phonegap application so your application can receive push notification from any 3rd party server.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM