phonegap/phonegap-plugin-push

ios: notification event not firing after app is closed when user opens app directly - works on android

Opened this issue · 1 comments

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

  1. Open app.
  2. Close app (NOT send to background).
  3. Send notification.
  4. Open app directly, NOT by clicking on notification from center.
  5. 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.