Hi,
Project is Net Maui 9.0
I am getting Object reference not set to an instance of an object at CrossMauiMTAdmob.Current.Init in iOS only
I cannot seem to solve this issue.
Is fine in Android.
Can I check please:
To save me time please...should this work with 9.0? - Please note, I updated workloads to latest version as per some guidance I found elsewhere
(ios 18.4.9288/9.0.100 SDK 9.0.200, VS 17.13.35931.197)
I have found many different answers to correct syntax for initializing so can you please confirm what is the exact syntax for initializing in iOS?
Have tried various forms of the void Init(string license = null, string nativeAdsId = null, string openAdsId = null, bool enableOpenAds = false, bool tagForUnderAgeOfConsent = false, string testDeviceId = null, DebugGeography geography = DebugGeography.DEBUG_GEOGRAPHY_DISABLED, bool initialiseConsentAtStartup = true, bool debugMode = false);
Have also tried same as Android (CrossMauiMTAdmob.Current.Init(this, PackageName) as someone else suggested but always same error.
I used this plugin on a Xamarin app and worked fine but I do remember the iOS ads only worked when released/testflight.
Could you advise please?
Thanks
James
Hi,
Project is Net Maui 9.0
I am getting Object reference not set to an instance of an object at CrossMauiMTAdmob.Current.Init in iOS only
I cannot seem to solve this issue.
Is fine in Android.
Can I check please:
To save me time please...should this work with 9.0? - Please note, I updated workloads to latest version as per some guidance I found elsewhere
(ios 18.4.9288/9.0.100 SDK 9.0.200, VS 17.13.35931.197)
I have found many different answers to correct syntax for initializing so can you please confirm what is the exact syntax for initializing in iOS?
Have tried various forms of the void Init(string license = null, string nativeAdsId = null, string openAdsId = null, bool enableOpenAds = false, bool tagForUnderAgeOfConsent = false, string testDeviceId = null, DebugGeography geography = DebugGeography.DEBUG_GEOGRAPHY_DISABLED, bool initialiseConsentAtStartup = true, bool debugMode = false);
Have also tried same as Android (CrossMauiMTAdmob.Current.Init(this, PackageName) as someone else suggested but always same error.
I used this plugin on a Xamarin app and worked fine but I do remember the iOS ads only worked when released/testflight.
Could you advise please?
Thanks
James