AppLovin / AppLovin-MAX-Defold

AppLovin MAX Defold Plugin for Android and iOS
MIT License
15 stars 3 forks source link

Native GDPR popup is being shown in regions that were not be set up for that #7

Closed Artsiom17 closed 8 months ago

Artsiom17 commented 8 months ago

MAX SDK Version

AppLovin-MAX-Defold 1.1.0

build.gradle configuration:

repositories {
    google()
    mavenCentral()
    maven { url "https://android-sdk.is.com" }
    maven { url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea" }
}

dependencies {
    implementation 'com.applovin:applovin-sdk:12.2.0'
    implementation 'com.applovin.mediation:fyber-adapter:8.2.6.0'
    implementation 'com.applovin.mediation:google-adapter:22.6.0.0'
    implementation 'com.applovin.mediation:inmobi-adapter:10.6.6.0'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'
    implementation 'com.applovin.mediation:ironsource-adapter:7.7.0.0.0'
    implementation 'com.applovin.mediation:vungle-adapter:7.1.0.0'
    implementation 'com.applovin.mediation:facebook-adapter:6.16.0.2'
    implementation 'com.applovin.mediation:mintegral-adapter:16.6.34.0'
    implementation 'com.applovin.mediation:unityads-adapter:4.9.2.1'
    implementation 'com.google.android.gms:play-services-ads:22.5.0'
}

Applovin consent popup initialization:

    local need_show_consent = applovin.has_user_consent() == false
    applovin.set_terms_and_privacy_policy_flow_enabled(need_show_consent)
    applovin.set_is_age_restricted_user(false)
    applovin.set_privacy_policy_url("url")
    applovin.set_terms_of_service_url("terms")

Problem description:

GDPR poliсy set up to show in EEA region. It works fine, consent popup is being shown in these countries as expected. But when i launch the app in any other region I see (native?) black GDPR popup instead of consent popup.

Expected behaviour:

Consent popup should be shown for EEA region. GDPR or Consent popups should not be shown for other regions. I want to turn off native GDPR popup. Is there a way to add additional method to API to be able to set on/off gdpr separately from consent popup?

wootaejeon commented 8 months ago

@Artsiom17 We don't offer any APIs to customize our Terms and Privacy Policy flow's behavior. We recommend that you also integrate the Google UMP with our flow to comply with TCF v2 consent. You can find more information here https://dash.applovin.com/documentation/mediation/defold/getting-started/terms-and-privacy-policy-flow

Artsiom17 commented 8 months ago

@wootaejeon I do not want to use applovin consent flow, i want to use ump flow directly and pass result to applovin. How to call ump flow from the code if i have ump dependency? I don't see any code that is responsible for ump flow logic. I have read the documentation, but don't understand how to integrate Google UMP after adding dependency?

I have added UMP dependency to build.gradle: implementation 'com.google.android.ump:user-messaging-platform:2.1.0'

I need something like this (pseudocode):

local need_show_consent = applovin.has_user_consent() == false -- maybe i need to get this value from ump directly?
-- ump call/show consent popup, get consent result from ump
local ump_consent result = some_ump.show_consent_if_needed()
applovin.set_has_user_consent(ump_consent)
wootaejeon commented 8 months ago

@Artsiom17 To integrate the Google UMP without using our consent flow, you would have to call Google UMP's native APIs manually outside our plugin code. MAX SDK automates the integration of the Google UMP and does not provide additional APIs than what's listed on our documentation.

Artsiom17 commented 8 months ago

@wootaejeon got it, thank you for clarification.