ios: notification event not firing after app is closed when user opens app directly - works on android
Opened this issue · 1 comments
daveed80 commented
Expected Behaviour
- App is closed by user
- Notification is received and appears in the notification center
- App is directly opened by user by clicking on the app, NOT by clicking on notification in center
- notification event fires, thus allowing for notification to be processed
Actual Behaviour
- App is closed by user
- Notification is received and appears in the notification center
- App is directly opened by user by clicking on the app, NOT by clicking on notification in center
- notification event DOES NOT fire, notification is not able to be processed
Reproduce Scenario (including but not limited to)
Steps to Reproduce
- Open app.
- Close app (NOT send to background).
- Send notification.
- Open app directly, NOT by clicking on notification from center.
- notification event does NOT fire
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 13.3.1
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Works as expected on Android
Cordova CLI version and cordova platform version
cli 9.0.0
Plugin version
2.3
Sample Push Data Payload
{
"aps": {
"alert": "r",
"sound": "default",
"content-available": "1"
},
"notId": 871
}
This seems to work as expected on Android.
duca14036 commented
try this repository https://github.com/zetekyinc/phonegap-plugin-push