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 app is killed by the user, clicking on the push notification will not properly open the app.
Yes, the app opens correctly when clicking the notification while the app is in background, but it is not working if the app is actually killed.
Expected Behaviour
App should open when clicking the notification.
Actual Behaviour
App does not open when clicking the notification.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Kill the app (not backgrounded, kill it from app manager).
Send a test notification to your phone.
Tap the notification
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
In this case described by me, when you tap the notification (while app is killed), the "inline" variable from this "if" condition will be always "false", so it will print the following message from the code: Log.d(TAG, "Don't Want Main Activity")
Instead, in order for the app to open, the code should call: forceMainActivityReload(false)
In order for this forceMainActivityReload(false) to be called, the "inline" variable from the "if" condition has to be removed or has to be "true".
The text was updated successfully, but these errors were encountered:
Here, I've the same issue - could somebody please suggest the best way to resolve it.
In fact, I can make it work if I send the notification payload as below; which I obviously do not want because it would need to change other push sender service. Further it will also break existing (working) notification icon on the tray.
Bug Report
When app is killed by the user, clicking on the push notification will not properly open the app.
Yes, the app opens correctly when clicking the notification while the app is in background, but it is not working if the app is actually killed.
Expected Behaviour
App should open when clicking the notification.
Actual Behaviour
App does not open when clicking the notification.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Cordova-Android version 10
(Android) Device Vendor (e.g. Samsung, HTC, Sony...)
Android (tested on emulator and on physical Samsung 21+)
Sample Push Data Payload
Issue found in code:
At file: PushHandlerActivity.kt
https://github.com/havesource/cordova-plugin-push/blob/master/src/android/com/adobe/phonegap/push/PushHandlerActivity.kt
Search for this condition:
if (!PushPlugin.isActive && foreground && inline)
In this case described by me, when you tap the notification (while app is killed), the "inline" variable from this "if" condition will be always "false", so it will print the following message from the code:
Log.d(TAG, "Don't Want Main Activity")
Instead, in order for the app to open, the code should call:
forceMainActivityReload(false)
In order for this forceMainActivityReload(false) to be called, the "inline" variable from the "if" condition has to be removed or has to be "true".
The text was updated successfully, but these errors were encountered: