AppLovin / AppLovin-MAX-SDK-iOS

84 stars 69 forks source link

Black Screen Issue on Interstitial and Rewarded Ads #300

Open faresbh opened 2 months ago

faresbh commented 2 months ago

MAX SDK Version

12.3.0

Device/Platform Info

iOS

Current Behavior

Environment: AppLovin SDK Versions: 11.11.3, 12.2.1, 12.1.0, 12.3.0 Ad Types: Interstitial and Rewarded Ads

Issue: We are experiencing a critical issue where interstitial and rewarded ads either start with or transition to a black screen, making them non-interactive and preventing proper ad lifecycle completion. This problem persists across multiple versions of the AppLovin SDK as listed above. The specifics of the issue are as follows:

Xcode debugging: The following error is logged by the AppLovin SDK when the black screen appears, which may provide insight into the underlying issue:

[AppLovinSdk] DEBUG [ALErrorReporter] template_error reported with code 200

As you can see here, this is the View from AppLovin SDK that being displayed resulting on a back screen.

Screenshot 2024-03-04 at 15 01 22

Expected Behavior

No response

How to Reproduce

The issue can be reproduced by attempting to display interstitial or rewarded ads using the AppLovin SDK.

Additional Info

No response

thomasmso commented 2 months ago

@faresbh - Thank you for reporting this. Would you be able to report the ad to us via our SDK's Creative Debugger? Also would you be able to send over our SDK's verbose logs?

faresbh commented 2 months ago

This is happening with every ad. Not related to a specific creative.

Here's the logs I get. The black screen appears after getting template_error reported with code 200

Update: We are not using any mediations adapters. This is happening with only AppLovin SDK integrated via cocoapods.

===Privacy States===
Please review AppLovin MAX documentation to be compliant with regional privacy policies.

Age Restricted User - No value set
Has User Consent - No value set
"Do Not Sell" - No value set
===App Tracking Transparency===
Authorization Status: Authorized (3)
NSUserTrackingUsageDescription Exists: true
===MAX Terms Flow===
Enabled: false
Privacy Policy URL: (null)
Terms of Service URL: (null)
===CMP (Consent Management Platform)===

CMP Name - UserCentrics CMP
CMP SDK ID - 5
CMP SDK Version - 3
IABTCF_gdprApplies - 1
IABTCF_TCString - CP6sKsAP6sKsAAFADBENApEsAP_gAEPgAAYgJmtV_H__bW9r8Xr3aft0eY1P99j77sQxBhfJE-4FzLvW_JwXx2ExNA36tqIKmRIEu3ZBIQFlHJDUTVigaogVryDMakWcgTNKJ6BkgFMRM2dYCF5vmQtjeQKY5vp9d3dx2D-t_dv83dzyz8VHn3c5f2e0eJCdA58tDfv9bROb-9IPd_58v4v0_F_rk2_eT1l_tevp7B-uft87_XUiChDQAARAAoAC4AHAAfABQAFQALgAcAA8ACAAEkALgAygBoAGoAOAAeABEACOAEwAKEAUgBTACrAFsAXQAxABmADQAG8APQAfAA_ACEAENAIgAiQBHACWAE0AJwAUYAwABhwDKAMsAZoA0QBsgDkgHOAdEA7gDvAHsAPiAfYB-wD_AQCAg4CEAERAIpARYBGACNQEcAR0AkQBJQCUgE0AJ-AUGAqACogFXALEAXMAusBeQF6AL6AYoAz4BogDXgG0ANwAcQA44B0gDqAHbAPaAfYA_oB_wEIAImARfAjwCPYEiASLAlUCVgExQJkAmUBM4CbQE7AKHgUeBSICkwFNAKfAVDAqQCpQFWAK5AV2AsKBYgFigLRAWpAtgC2YFuAW6AuABcgC6AF2gLvgXkBeYC-gF_gMEAYMAw0BiADFgGPAMhgZGBkkDJgMnAZUAywBmYDOQGeANEAaMA00BqYDVYGrgayA14BtADbIG3AbfA3IDdQG-AOCAcWA48BycDlgOXAc6A58B2wDuQHigPHgeSB5QD2gHxQPkA-UB9cD7QPugfsB-4D-wH_AQBAgIBAwCB4EEYIJggoBBgCDYEIQIUAQrghaCF4EM4Icgh1BDwEPQIfgRTAjABGkCN4EdAI9gR9Aj-BIQCRAEigJGwSQBJICSkEmASZAlHBKgEqQJYQSzBLSCW4JcQS6BLsCX0EwATBAmGBMUCY4EyYJmAmaEFAAAAAA.YAAAAAAAAAAA
IABTCF_AddtlConsent - No value set
========================================
[AppLovinSdk] ERROR [ALMediationService] Failed to load [ALMediatedFullscreenAd thirdPartyAdPlacementIdentifier=133876990, adUnitIdentifier=94ca128c272e1583, format=INTER, networkName=Smaato SDK Waterfall]: adapter not loaded
[AppLovinSdk] ERROR [ALMediationService] Failed to load [ALMediatedFullscreenAd thirdPartyAdPlacementIdentifier=133876990, adUnitIdentifier=94ca128c272e1583, format=INTER, networkName=Smaato SDK Waterfall]: adapter not loaded
[AppLovinSdk] ERROR [ALMediationService] Failed to load [ALMediatedFullscreenAd thirdPartyAdPlacementIdentifier=133876989, adUnitIdentifier=94ca128c272e1583, format=INTER, networkName=Smaato SDK Waterfall]: adapter not loaded
[AppLovinSdk] DEBUG [ALErrorReporter] template_error reported with code 200
[AppLovinSdk] DEBUG [ALErrorReporter] Reporting integration_error error...
[AppLovinSdk] DEBUG [ALErrorReporter] Reporting integration_error error...
[AppLovinSdk] DEBUG [ALErrorReporter] integration_error reported with code 200
[AppLovinSdk] DEBUG [ALMuteSwitchObservationManager] Mute switch is 0
[AppLovinSdk] DEBUG [ALMuteSwitchObservationManager] Mute switch is 1
maximilianbuck commented 2 months ago

@faresbh Could you please share the complete log from a session where you reproduce the black screen issue? The snippet you shared here doesn't have the template_error reported with code 200 you mentioned in your initial message. Also please make sure you have our verbose logs enabled: https://dash.applovin.com/documentation/mediation/ios/getting-started/advanced-settings#enable-verbose-logging

faresbh commented 2 months ago

@maximilianbuck here it's is: the logs are filtered to AppLovinSdk

[AppLovinSdk] DEBUG [AppLovinSdk] 
========================================
=====AppLovin SDK=====
===SDK Versions===
Version: 12.3.0
Plugin Version: 
Ad Review Version: 
OM SDK Version: 1.4.12-Applovin
===Device Info===
OS: iOS 17.3.1
IDFA: <Enable verbose logging to see the IDFA to use for test devices - https://monetization-support.applovin.com/hc/en-us/articles/236114328-How-can-I-expose-verbose-logging-for-the-SDK>
IDFV: <Enable verbose logging to see the IDFV to use for test devices - https://monetization-support.applovin.com/hc/en-us/articles/236114328-How-can-I-expose-verbose-logging-for-the-SDK>
Model: iPhone14,3
Locale: en_DE
Simulator: 0
Tablet: 0
===App Info===
Bundle ID: de.tvsmiles.tvsmiles
Has AppLovinSDKResources: true
NSAdvertisingAttributionReportEndpoint: (null)
===SDK Settings===
SDK Key: sMRyqsHzbW5B55p5RLfJTNaXBH1rFzvkU5_LGa_Kerigolzf62Jl6iwzLtMIqn2XRt0tDol1bAc8g0N7C7c51N
Mediation Provider: (null)
TG: 3
AEI: 116
MEI: 1
MD: FR4p/BAVigQVqgoVAAAVABUAFQIAFQQVBhUEABXUBBXmCxUGABUAFQAVCAAVABUAFQoAFawDFdAIFQwAFQAVABUOABUAFQAVEAAV3AQVxAwVEgAVABUAFRQAFQAVABUWABUAFQAVGAAVABUAFRoAFQAVABUcABUAFQAVHgAA
Test Mode On: false
Verbose Logging On: false
===Privacy States===
Please review AppLovin MAX documentation to be compliant with regional privacy policies.

Age Restricted User - No value set
Has User Consent - No value set
"Do Not Sell" - No value set
===App Tracking Transparency===
Authorization Status: Authorized (3)
NSUserTrackingUsageDescription Exists: true
===MAX Terms Flow===
Enabled: false
Privacy Policy URL: (null)
Terms of Service URL: (null)
===CMP (Consent Management Platform)===

CMP Name - UserCentrics CMP
CMP SDK ID - 5
CMP SDK Version - 3
IABTCF_gdprApplies - 1
IABTCF_TCString - CP6sKsAP6sKsAAFADBENApEsAP_gAEPgAAYgJmtV_H__bW9r8Xr3aft0eY1P99j77sQxBhfJE-4FzLvW_JwXx2ExNA36tqIKmRIEu3ZBIQFlHJDUTVigaogVryDMakWcgTNKJ6BkgFMRM2dYCF5vmQtjeQKY5vp9d3dx2D-t_dv83dzyz8VHn3c5f2e0eJCdA58tDfv9bROb-9IPd_58v4v0_F_rk2_eT1l_tevp7B-uft87_XUiChDQAARAAoAC4AHAAfABQAFQALgAcAA8ACAAEkALgAygBoAGoAOAAeABEACOAEwAKEAUgBTACrAFsAXQAxABmADQAG8APQAfAA_ACEAENAIgAiQBHACWAE0AJwAUYAwABhwDKAMsAZoA0QBsgDkgHOAdEA7gDvAHsAPiAfYB-wD_AQCAg4CEAERAIpARYBGACNQEcAR0AkQBJQCUgE0AJ-AUGAqACogFXALEAXMAusBeQF6AL6AYoAz4BogDXgG0ANwAcQA44B0gDqAHbAPaAfYA_oB_wEIAImARfAjwCPYEiASLAlUCVgExQJkAmUBM4CbQE7AKHgUeBSICkwFNAKfAVDAqQCpQFWAK5AV2AsKBYgFigLRAWpAtgC2YFuAW6AuABcgC6AF2gLvgXkBeYC-gF_gMEAYMAw0BiADFgGPAMhgZGBkkDJgMnAZUAywBmYDOQGeANEAaMA00BqYDVYGrgayA14BtADbIG3AbfA3IDdQG-AOCAcWA48BycDlgOXAc6A58B2wDuQHigPHgeSB5QD2gHxQPkA-UB9cD7QPugfsB-4D-wH_AQBAgIBAwCB4EEYIJggoBBgCDYEIQIUAQrghaCF4EM4Icgh1BDwEPQIfgRTAjABGkCN4EdAI9gR9Aj-BIQCRAEigJGwSQBJICSkEmASZAlHBKgEqQJYQSzBLSCW4JcQS6BLsCX0EwATBAmGBMUCY4EyYJmAmaEFAAAAAA.YAAAAAAAAAAA
IABTCF_AddtlConsent - No value set
========================================
[AppLovinSdk] DEBUG [ALMuteSwitchObservationManager] Mute switch is 0
[AppLovinSdk] DEBUG [ALMuteSwitchObservationManager] Mute switch is 1
[AppLovinSdk] DEBUG [ALMuteSwitchObservationManager] Mute switch is 0
[AppLovinSdk] DEBUG [ALMuteSwitchObservationManager] Mute switch is 1
[AppLovinSdk] DEBUG [ALErrorReporter] file_error reported with code 200
[AppLovinSdk] DEBUG [ALErrorReporter] cache_error reported with code 200
[AppLovinSdk] DEBUG [ALErrorReporter] Reporting integration_error error...
[AppLovinSdk] DEBUG [ALErrorReporter] Reporting integration_error error...
[AppLovinSdk] DEBUG [ALErrorReporter] integration_error reported with code 200
[AppLovinSdk] DEBUG [ALErrorReporter] template_error reported with code 200
maximilianbuck commented 2 months ago

@faresbh would you be able to share the IPA? There are a lot of logging lines that are missing in your log so it would be easiest if we could reproduce on our end.