marcojak / MauiMTAdmob

MIT License
104 stars 17 forks source link

Works with iOS simulator but not actual devices #28

Closed DeerSteak closed 1 year ago

DeerSteak commented 1 year ago

I have tried this with the sample, and I can't get any AdViews to load.

Visual Studio 17.5.4 .NET 7.0 iOS Xcode 14.2 iPhone 14 Pro Max running 16.4.1

When I change the Application ID and AdsId to match something from my own AdMob setup, and set the package name to my own app's package name so it will install, it installs on my phone but refuses to run and crashes as soon as it starts up.

Stack trace attached. Since it's happening with the sample app I have to figure it's something with the library.

This happens when you deploy a debug version to the device directly, or upload to TestFlight and install that way. Either way it crashes. The stack trace included here is from a debug run

stack.txt

DeerSteak commented 1 year ago

Ugh, it is my own fault. Seems that telling it to ask to track when the device doesn't allow it is the culprit. I added that to my completion handler on iOS previously and added it to my sample because I thought it was right, and I was wrong. My bad.