phonegap / phonegap-plugin-push

Register and receive push notifications
MIT License
1.94k stars 1.91k forks source link

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

Open daveed80 opened 4 years ago

daveed80 commented 4 years ago

Expected Behaviour

Actual Behaviour

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.

duca14036 commented 4 years ago

try this repository https://github.com/zetekyinc/phonegap-plugin-push