xamarin / GoogleApisForiOSComponents

MIT License
225 stars 162 forks source link

Setting Messaging.SharedInstance.Delegate to AppDelegate is blocking interface #466

Closed farukaf closed 3 years ago

farukaf commented 3 years ago

https://github.com/xamarin/GoogleApisForiOSComponents/blob/e1f019f419c14d9ed28538989f9feadafc749006/samples/Firebase/CloudMessaging/CloudMessagingSample/AppDelegate.cs#L54

This line in Xamarin.Forms is blocking the interface in the device, issue doesn't show in simulator. Tested with 3 different devices with iOS 14 and 13 Given as how this is recommended in the GettingStarted.md I find hard I'm the first to notice this, but didn't find any open issue about this..

Using Xamarin.Firebase.iOS.CloudMessaging 4.7.1, Xamarin.Forms 4.8.0.1687

farukaf commented 3 years ago

Not as how I expected. Had a regression with the integration today. The problem was a Task.Wait(); Any attempt the make a thread in the AppDelegate causes this issue.