marcojak / MauiMTAdmob

MIT License
104 stars 17 forks source link

Crash in Windows #57

Closed erossini closed 4 months ago

erossini commented 5 months ago

In my MainPage and other pages I added a banner using

<ads:MTAdView AdsId="{StaticResource AdMobAppBannerId}" />

the app is working on Android. When I run the app on Windows, the app crashes because

System.NullReferenceException: 'Object reference not set to an instance of an object.'

image

If I remove the line above only from the MainPage, the app is working. Also, the other pages containing ads are working. Only the MainPage has an error.

marcojak commented 4 months ago

I've tested it with the latest version (1.2.0) and it works now. Closing for now but if you still have an issue with this, feel free to open it.