Notification cannot get when the app is not run background #729
Comments
I faced the problem that notification cannot be get when the app is not running background/foreground. Is there any solution to solve this issue? thanks |
@jianhao1203 when your app is in the background do you see the notification in the notification tray? What is a sample payload you send? |
He wants the plugin to wake up the app code if it's killed through the "alt-tab". It's a duplicate. |
@macdonst , when the app still running background(not killed off), the notification still can be get. However, after I end the apps, the notification will never get anymore even through after that I reopened the app. Is that anyway that I can overcome this as this denied the purpose of push notification if required the user to run the app in background in order to receive push notification, thanks lot. |
@fredgalvao , is this issue duplicated? I saw the issues #93 that stated already solved but it still happen when I try it yesterday, hope u can give me some suggestions to overcome this issues, thanks. |
@macdonst , here is the code i implement, is there any missed out? I using plugin version 1.6.0. `document.addEventListener("deviceready", onDeviceReady, false);
|
+1 i think that the app must receive the push when the app work in foreground, in background and when is killed. |
@jianhao1203 alright, this is a duplicate of #707. I've tested this on multiple Android phones and cannot reproduce the issue. Please add some details to #707 like the phone you are using, Mi 4i, Android version, etc. |
This thread has been automatically locked. |
Expected Behaviour
Notification can be get no matter the app is run / not run in background or foreground
Actual Behaviour
Notification cannot be get if the app is being killed at background.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 5.0.2
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Mi 4i
Cordova CLI version and cordova platform version
Plugin version
Sample Push Data Payload
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: