xamarin / GoogleApisForiOSComponents

MIT License
225 stars 156 forks source link

MobileAds.SharedInstance is always null #621

Open GreenleafDk opened 1 year ago

GreenleafDk commented 1 year ago

Xamarin.Google.iOS.Mobile.Ads

Trying to initialize with MobileAds.SharedInstance.Start(CompletionHandler); and this handler private void CompletionHandler(InitializationStatus status){}

But this throws an exception with SharedInstance being null.

Version 8.13.0.3 and more tested This is seen on iOS 15.7.6 and more tested

khambley commented 5 months ago

I'm running into the same issue, looks like I'm on .NET 8 and iOS 17.2. Looks like this issue has been around for awhile, any chance it will get fixed?

GreenleafDk commented 4 months ago

I should add that, for me, this problem went away when building app for store and installing it from there. That changed it from a critical issue to an annoying one. Now that part of the code is in an ifdef and not enabled for local execution. Can further add that I have experienced the exact same issue for msAppCenter, which has null exception locally, but not when built for store, so this is something which can happen, and likely due to the different linker settings.