GoogleApisForiOSComponents icon indicating copy to clipboard operation
GoogleApisForiOSComponents copied to clipboard

MobileAds.SharedInstance is always null

Open GreenleafDk opened this issue 1 year ago • 2 comments

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

GreenleafDk avatar Jun 17 '23 16:06 GreenleafDk

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?

khambley avatar Feb 01 '24 23:02 khambley

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.

GreenleafDk avatar Feb 02 '24 19:02 GreenleafDk