EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 446 forks source link

Push notifications on iOS broke for me between 10.4.0 and 10.5.0 #1589

Open lorenzk opened 4 years ago

lorenzk commented 4 years ago

Hi @EddyVerbruggen and thanks for creating such a fundamental part of our news app! Our app has developed problems on iOS after upgrading from 10.4 to 10.5 and I cannot figure out why - maybe you or someone else in the community can help?

In version 10.4.0 Notifications arrive both in the foreground and background as they should, tapping them opens a detail view in the app via the onMessageReceivedCallback .

In versions 10.5.0, 10.5.1, and 10.5.2 Notifications do not arrive when the app is in the foreground. They do arrive when I put the app in the background, but tapping the notification only opens the app, without calling the onMessageReceivedCallback. After force-closing the app, notifications still do not trigger anything in the foreground, but do arrive in the background and tapping them runs the callback.

I confirmed this both on TestFlight and debugging via cable connected to my laptop.

Settings and version numbers:

I tried looking at the changes between 10.4.0 and 10.5.0 and inserting console.log calls to maybe find the difference in execution paths but could not see anything out of the ordinary.

Just in the off chance that this is relevant: we use AWS Pinpoint to trigger messages via APNS.

Thank you for your time!

manojdcoder commented 4 years ago

If you revert back to 10.4.0, everything still works as expected?

lorenzk commented 4 years ago

Yes, exactly. I went back and forth between versions multiple times to pinpoint the issue.

allangoncalves commented 4 years ago

@lorenzk were you able to find the source of the problem?

lorenzk commented 4 years ago

@allangoncalves No, we are keeping the downgrade for now :-(

dbenninger commented 3 years ago

I have the same issue upgrading from 9.0.2 to 10.6.3. I get the push token, but I just don't get any push messages anymore on iOS. I upgraded to only 10.4.0 and that worked. I also upgraded to 10.5.2 and that worked too. When I upgraded to 10.6.0, it stopped working again. Was not able to figure out why yet...