Alex Ingram
Alex Ingram

Reputation: 434

Swift Admob console displays simulator device ID but not when running on iPhone?

I've implemented Admob into my project however I can't add the test device ID for my iPhone.

Here is the code:

let request = GADRequest()
myAd = GADInterstitial(adUnitID: "ca-app-pub-4411736350819540/1731977668")
myAd.delegate = self
myAd.load(request)

My device ID isn't showing in the console when I run the app, it just shows an actual ad and not a test ad.

It works fine in Simulator and informs me on how to add the simulator ID.

This is the feedback from console when running on iPhone

2017-04-20 01:57:57.311 SpaceShip[2798:] <FIRAnalytics/INFO> Firebase Analytics v.3600000 started
2017-04-20 01:57:57.392 SpaceShip[2798:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled 
2017-04-20 01:57:57.398: <FIRInstanceID/WARNING> FIRInstanceID AppDelegate proxy enabled, will swizzle app delegate remote notification handlers. To disable add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-04-20 01:57:57.397 SpaceShip[2798:] <FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
true
2017-04-20 01:58:05.367 SpaceShip[2798:] <FIRAnalytics/INFO> Firebase Analytics enabled

Upvotes: 3

Views: 471

Answers (1)

kl.woon
kl.woon

Reputation: 2055

Please check your Product -> Scheme -> Arguments -> Environment Variables if there is a key: OS_ACTIVITY_MODE, disable/remove it.

enter image description here

Upvotes: 5

Related Questions