cordova-plugin-firebase icon indicating copy to clipboard operation
cordova-plugin-firebase copied to clipboard

iOS issue with push notifications

Open rolinger opened this issue 5 years ago • 1 comments

Hi all, had to upgrade a bunch of cordova project stuff and started a fresh build/project (all new folder).

After getting everything working I was testing push notifications. when the app was open the push notification was coming through directly into the app and the data payload was being processed - but it was not getting the default sound. In addition, the push notification was not showing up in the status bar when the app was closed or in the background.

After a few behavior tests I started to see FCM issues during the build/launch to phone console of xCode - issues that did not happen the first few times I was testing. Now I am getting "Failed to subscribe to topic Error Domain=com.google.fcm". Previously I was seeing the topic name being displayed as it was being subscribed. Now, after starting with these errors, push notifications aren't working at all - not even with the app open anymore was originally working (above).

Whats happening or what can I look at here?

Xcode : 10.1 iOS Phone: 12.3.1 Cordova CLI: 8.0.0 cordova-ios: 5.0.0 cordova-plugin-firebase: 4.1.0

rolinger avatar Aug 10 '19 17:08 rolinger

There's been some changes about how you need to post to Firebase for iOS - http://www.themoyles.co.uk/2019/11/cordova-firebase-background-push-notifications-not-working-in-ios13-and-xcode-11/ for details. See if thatmakes a difference

andymoyle avatar Nov 25 '19 20:11 andymoyle