Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onMessageReceived doesn't get triggered after cold start #917

Open
4 of 5 tasks
nivlempert1 opened this issue Dec 4, 2024 · 0 comments
Open
4 of 5 tasks

onMessageReceived doesn't get triggered after cold start #917

nivlempert1 opened this issue Dec 4, 2024 · 0 comments

Comments

@nivlempert1
Copy link

nivlempert1 commented Dec 4, 2024

Bug report

CHECKLIST

  • I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • I have checked that no similar issues (open or closed) already exist.

Current behavior:

happens on iOS-
Quit the app
Send a notification
Press on the notification to open the app
onMessageReceived doesn't trigger- so the notification data is lost

I've read the documentation regarding the changes and I still can't make that case work. I tried both true and false for FIREBASE_MESSAGING_IMMEDIATE_PAYLOAD_DELIVERY

Tried both versions 17.0.0 and 18.0.0, it worked well on 17.0.0, and didn't on 18.0.0. I saw a lot of changes regarding notifications in 18.0.0

Expected behavior:

Quit the app
Send a notification
Press on the notification to open the app
onMessageReceived should trigger and then I can use the notification's data to further direct the user.

Environment information

  • Cordova CLI version - 12.0.0

  • Cordova platform version - 7.1.1

  • Plugins & versions installed in project (including this plugin)
    @moodlehq/cordova-plugin-local-notification 0.9.0-moodle.12 "LocalNotification"
    com.darktalker.cordova.screenshot 0.1.5 "Screenshot"
    cordova-clipboard 1.3.0 "Clipboard"
    cordova-launch-review 4.1.1 "Launch Review"
    cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter"
    cordova-plugin-androidx 3.0.0 "cordova-plugin-androidx"
    cordova-plugin-app-version 0.1.14 "AppVersion"
    cordova-plugin-badge 0.8.9 "Badge"
    cordova-plugin-deeplinks 1.1.1 "Cordova Deeplinks Plugin"
    cordova-plugin-device 2.1.0 "Device"
    cordova-plugin-file-transfer 2.0.1-dev "File Transfer"
    cordova-plugin-file 8.1.3 "File"
    cordova-plugin-firebasex 17.0.0 "Google Firebase Plugin"
    cordova-plugin-fullscreen 1.3.0 "cordova-plugin-fullscreen"
    cordova-plugin-inappbrowser 6.0.0 "InAppBrowser"
    cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
    cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
    cordova-plugin-localization-strings 5.0.5 "Localization"
    cordova-plugin-navigationbar-color 0.0.8 "NavigationBar"
    cordova-plugin-purchase 13.11.1 "Purchase"
    cordova-plugin-statusbar 4.0.0 "StatusBar"
    cordova-plugin-tts-advanced 0.5.2 "TTS"
    cordova-plugin-x-socialsharing 6.0.4 "SocialSharing"
    cordova-promise-polyfill 0.0.2 "cordova-promise-polyfill"
    cordova-sqlite-storage 6.1.0 "Cordova SQLite storage plugin - cordova-sqlite-storage plugin version"
    es6-promise-plugin 4.2.2 "Promise"

  • Dev machine OS and version, e.g.

    • OSX- 15.1.1

Runtime issue

  • Device details - iPhone 16 Pro Simulator- iOS 18.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant