fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
623 stars 995 forks source link

Heads Up Notification #159

Open nurhadijogja opened 8 years ago

nurhadijogja commented 8 years ago

Hi, i have a question,, how to achieve heads up notification like in whatsapp? is it possible with this plugin? whatsapp notification

yesuhamontes commented 8 years ago

If the app is in the background, it will.

nurhadijogja commented 8 years ago

i have tried this before i post this question. the notification is received in background but not heads up like in the picture (whatsapp notification). i ran in Redmi 3 Pro, could this cause a problem? i have checked all settings,, but still not working. i will try to use another device.

vittorbraga commented 7 years ago

I have same issue, the notification is received in app, if this is running in the background, but the alert not appear

ghost commented 7 years ago

Did anybody find a solution yet?

vittorbraga commented 7 years ago

For me, this plugin gets a message in the background and another plugin shows the notification popup. The plugin I used de.appplant.cordova.plugin.local-notification

ghost commented 7 years ago

@vittorbraga, I think the "de.appplant.cordova.plugin.local-notification" plugin, does not have the Heads-Up notification feature. However, this fork does the trick "https://github.com/DavidBriglio/cordova-plugin-local-notifications".

The only problem here is that I don't want to have my app running in the background. I need to get a Heads-Up notification from a remote push, coming from Firebase - when the app is killed.

vittorbraga commented 7 years ago

Traduzir

I believe the plugin does not have this feature. I could be wrong. Firebase sends the notification and the your service it receives has the work of use. This is how I use this plugin

andresglzca commented 7 years ago

Hey!

I'm Using this plugin right now, and is working pretty good, only set the priority like said in this Link: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#priority-in-notifications

2 is the maxim priority.

regards guys!