You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the app is killed (i.e. totally shutdown, not idle in the background), tapping on an action button with the 'foreground: false' flag does not invoke the target method until the app is manually opened again. This is not an issue when 'foreground:true' is flagged, nor is it an issue on iOS.
Expected Behaviour
The app should invoke the target method immediately.
Actual Behaviour
The app invokes the target method the next time the application is opened.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Kill the app (not backgrounded).
Send notification to device with an option for a background action button
Click the action button
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
From what I observe is that Killing the App kills the background service.
In normal conditions, closing the app, or rebooting the phone does not kills the service and the push notification works, even without the "force-start" params. It's like the app needs to start at least once to register the background service.
However the doc says :"If you add force-start: 1 to the data payload the application will be restarted in background even if it was force closed." Looks to be untrue, means force close? killing it/force stop?
Bug Report
When the app is killed (i.e. totally shutdown, not idle in the background), tapping on an action button with the 'foreground: false' flag does not invoke the target method until the app is manually opened again. This is not an issue when 'foreground:true' is flagged, nor is it an issue on iOS.
Expected Behaviour
The app should invoke the target method immediately.
Actual Behaviour
The app invokes the target method the next time the application is opened.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 11
Cordova-Android version 9.1.0
(Android) Device Vendor (e.g. Samsung, HTC, Sony...)
Google
Sample Push Payload
Notes
I've also tried a combination of:
The text was updated successfully, but these errors were encountered: