Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

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

Open
daveed80 opened this issue Jun 4, 2020 · 1 comment

Comments

@daveed80
Copy link

daveed80 commented Jun 4, 2020

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.

@duca14036
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants