Googleads-mobile-unity: ADS does not work on iOS (SDK tried to perform a networking task before being initialized)

Created on 6 Jan 2021  路  20Comments  路  Source: googleads/googleads-mobile-unity

Admob does not work for iOS, the same code works just fine for Android.
I'm currently using v5.3.0 of this plugin, which was tested with the iOS SDK 7.63.0.

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2020.1.16
  • Google Mobile Ads Unity plugin version: 5.3.0
  • Platform: iOS
  • Platform OS version: iOS 14

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

  • add 5.3.0 Admob plugin version;
  • make the build for iOS;
  • see messages like in the screenshot

1

Most helpful comment

Since the pod file is regenerated on each build you might want to have the following settings in iOS Resolver:

Screenshot 2021-03-23 at 14 57 32

This gives me the same pod flie as above and the issue is no longer present.

All 20 comments

Same here.
An ad was called after 'MobileAds.Initialize' callback.
My app is also a game already being serviced by Android, and I'm expanding my platform to iOS.
Test Unit ID used.

UnityVersion : 2019.4.17f1
Google Mobile Ads Unity plugin version : 5.4.0
PlatformVersion : ios14 / Ipad Air (3gen)

Same Here. IOS Platform

Soveld! Add a framework.
image

Soveld! Add a framework.
image

Hmm,I don't have such a framework. Where did you find it?

Adding this to the podfile fixed the issue
use_frameworks! :linkage => :static

use_frameworks! :linkage => :static

Didn't help me :(

Adding this to the podfile fixed the issue
use_frameworks! :linkage => :static

Can you explain more?

I am having the same issue on iOS as well. I am currently using admob v5.4.0 and am testing it on iPhone 12 running iOS 14.4. I already have the Pods_Unity_iPhone.framework:

Screenshot 2021-03-01 at 9 00 51 PM

Adding the "use_frameworks! :linkage => :static" to the pod file does not appear fix the issue for me either. Hope somebody will be able to help us out with this issue.

Screenshot 2021-03-02 at 4 30 05 PM

Adding this to the podfile fixed the issue
use_frameworks! :linkage => :static

Works for me. Unity 2019.4.20f1, Mopub 5.16.1 and Admob 7.69.0

I am having the same issue on iOS as well. I am currently using admob v5.4.0 and am testing it on iPhone 12 running iOS 14.4. I already have the Pods_Unity_iPhone.framework:

Screenshot 2021-03-01 at 9 00 51 PM

Adding the "use_frameworks! :linkage => :static" to the pod file does not appear fix the issue for me either. Hope somebody will be able to help us out with this issue.

Screenshot 2021-03-02 at 4 30 05 PM

Did you somehow solve the issue?

Same issue here.
before it worked well when i used

'Google-Mobile-Ads-SDK', '~>7.68'
'GoogleMobileAdsMediationUnity', '3.4.2.1'

It's OK but.

it issue appears when I add
'GoogleMobileAdsMediationFacebook', '6.2.1.0'

Did you somehow solve the issue?

Not exactly. But I was integrating some other 3rd party SDKs into my project afterwards and the issue went away. I do notice that my pod file is much different after integrating these other 3rd party SDKs. Though ads do appear now on iOS, they introduce another issue where all audios get muted after a rewarded ad is loaded. There is already a thread about this on this GitHub as well. So it's just 1 issue after another honestly.

My altered pod file:

Screenshot 2021-03-21 at 1 00 53 PM

Since the pod file is regenerated on each build you might want to have the following settings in iOS Resolver:

Screenshot 2021-03-23 at 14 57 32

This gives me the same pod flie as above and the issue is no longer present.

Since the pod file is regenerated on each build you might want to have the following settings in iOS Resolver:
This gives me the same pod flie as above and the issue is no longer present.

Ouh! Thank you for the tip!

Since the pod file is regenerated on each build you might want to have the following settings in iOS Resolver:
This gives me the same pod flie as above and the issue is no longer present.

OMG! WORKS NOW!!!!

Hey I am still facing this issue. I tried the above mentioned solutions but no luck. Did anyone find any solution?

adding UnityFramework.framework fixed my issue
Screenshot 2021-05-20 at 8 40 50 PM

@ang713 same here

hello anybody, I use the same method in iOS14 and it is no problem, but iOS13 is still problematic, and it is no problem to connect to the Xcode real machine for debugging, but not after archive and installation.

I am having the same issue on iOS as well. I am currently using admob v5.4.0 and am testing it on iPhone 12 running iOS 14.4. I already have the Pods_Unity_iPhone.framework:

Screenshot 2021-03-01 at 9 00 51 PM

Adding the "use_frameworks! :linkage => :static" to the pod file does not appear fix the issue for me either. Hope somebody will be able to help us out with this issue.

Screenshot 2021-03-02 at 4 30 05 PM

me too 馃樋馃樋

Was this page helpful?
0 / 5 - 0 ratings