Closed funyamora closed 5 months ago
When exactly does this crash occur? Can you give us some hints as to how to replicate?
When I tap on the app icon it crashes immediately.
The same with us, with a lot of devices. Seems with iOS 16
What is the minimum version you are supporting? Have you increased this to 12? i.e. have the following in your info additions:
<key>MinimumOSVersion</key>
<string>12.0</string>
Could you try this build for me:
https://drive.google.com/file/d/1gdD4Ug1WpDosPAxsIAdnt6uF-FSo14F6/view?usp=sharing
Thnaks. The crash on startup has been fixed. However, the sample app still crashes when calling the UnityAdsTests#init method.
Can you post the logs from the device please?
Sorry. Here is the device logs.
MinimumOSVersion
this does not help me. Still have a crash on startup. Device: iPhone14ProMax OS: 16.2 SDK: 51.0.1.2 Log: crash.txt
@cleverbeapps Did you try the updated extension as well as the minimum os version?
@marchbold Yes, I've tried
In the descriptor:
In the project.apm: { "version": "4.11.300", "id": "com.distriqt.admob.UnityAds" }, { "version": "15.1.1", "id": "com.distriqt.Adverts" }
@marchbold this is correct crash logs: crash.txt
@marchbold Seems this is the reason: "ASI found [dyld] (sensitive) 'Symbol not found: _$s7Network11NWInterfaceV13InterfaceTypeO4wifiyA2EmFWC Referenced from: <27C59932-9C00-3349-A2C6-D405F60978CE> /private/var/containers/Bundle/Application/7B562144-FE1D-42AD-BCA3-05D53502D096/MySuperGame.app/MySuperGame Expected in: <0B5F0378-B7CD-350A-8E30-D60D2B74466D> /System/Library/Frameworks/Network.framework/Network'"
@cleverbeapps Did you replace the ane from apm with the one above? Its a beta version that should solve that issue.
@marchbold Oh, I missed this one. Yes, with this build, the startup crash disappears. Could you help me, please, I have questions:
1) I saw in your example consent sdk calls:
Adverts.service.consent.addEventListener( ConsentEvent.STATUS_UPDATED, statusUpdatedHandler ); Adverts.service.consent.addEventListener( ConsentEvent.STATUS_ERROR, statusErrorHandler ); Adverts.service.consent.getConsentStatus( Config.admob_publisherId );
so, there are two handlers, but both never triggered for me. Is it normal?
In general, is it crucial to add getConsentStatus/askForConsent logic, or ads can be served without consent? Is there any relation between IDFA and Consent or these things are different and not dependent on each other?
2) as I understood, the only way how to check if mediation is implemented and works correctly on the device, is to call Adverts.service.openAdInspector(); and check statuses there. Is it correct? (by the way, Adverts.service.openAdInspector() leads to crash for now, if you invoke it after any ads were shown)
3) What is the need to call
AdMobUnityAds.instance.setConsent(true);
AdMobIronSource.instance.setConsent(true)
I mean is it optional or it is better always to have this call?
Is there any chaining in logic, for example, first to call
getConsentStatus()
then call
setConsent('value form getConsentStatus')
These things are a little bit confusing. Thank you.
@cleverbeapps Can you post your questions in a separate issue?
@marchbold This issue is not resolved. I hope it doesn't close yet. Always occurs on iOS15
@funyamora Can you elaborate? Our tests with the latest release have resolved this issue.
@marchbold It is not resolved even with the latest release v7.0.1. The situation remains the same, and it crashes when I run the sample project UnityAdsTests#init. This always occurs on iOS15, but there is no problem on iOS17. https://github.com/distriqt/ANE-Adverts-Mediation/issues/69#issuecomment-2151535401
Here are the logs and apm. apm_and_logs.zip
@funyamora Okay, I'll open a new issue with these details, as this is a different issue to the original one around the Network dependency.
iPhone 7 Plus crashes when UnityAds ANE is included. This problem does not occur on iPhone 14.
Environment
Project.apm
project.apm.zip
Logs