GoogleApisForiOSComponents
GoogleApisForiOSComponents copied to clipboard
MobileAds.SharedInstance is always null
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
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?
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.