xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

Push notifications won't work with Sample "CloudMessagingSample" in iOS 14.4 #475

Open vindev2018 opened 3 years ago

vindev2018 commented 3 years ago

Was facing an issue with iOS 14.4 on my app, where push notifications won't work on app startup. Killing the app and relaunching makes the push notification work again. App works perfectly till iOS 14.3.

Tried the same with CloudMessagingSample provided in this repo and notice the same behaviour. Is anyone else facing similar issue or its just me?

My code is exactly same as in file https://github.com/xamarin/GoogleApisForiOSComponents/blob/master/samples/Firebase/CloudMessaging/CloudMessagingSample/AppDelegate.cs.

vindev2018 commented 3 years ago

Was facing an issue with iOS 14.4 on my app, where push notifications won't work on app startup. Killing the app and relaunching makes the push notification work again. App works perfectly till iOS 14.3.

Tried the same with CloudMessagingSample provided in this repo and notice the same behaviour. Is anyone else facing similar issue or its just me?

My code is exactly same as in file https://github.com/xamarin/GoogleApisForiOSComponents/blob/master/samples/Firebase/CloudMessaging/CloudMessagingSample/AppDelegate.cs.

Update:

Downgraded the packages to 1 version earlier for below 3 packages, and the push notifications started working again.

Xamarin.Firebase.iOS.Core - 6.6.6 Xamarin.Firebase.iOS.InstanceID - 4.3.3 Xamarin.Firebase.iOS.CloudMessaging- 4.3.0

lijusparkt commented 3 years ago

Use this: if anyone facing the issue with OS Bigsur

Xamarin.Firebase.iOS.Analytics (6.0.4.1) Xamarin.Firebase.iOS.Core (6.1.0.1) Xamarin.Firebase.iOS.Crashlytics (3.14.0.3) Xamarin.Firebase.iOS.InstanceID (4.2.1.1)