AppLovin / AppLovin-MAX-SDK-iOS

86 stars 69 forks source link

Terms and Privacy Flow alert #342

Open piyush-singh-ss opened 3 weeks ago

piyush-singh-ss commented 3 weeks ago

MAX SDK Version

12.4

Device/Platform Info

iOS

Current Behavior

We want to test the alert for the Privacy and Terms acceptance flow, but are unable to reset and test the alert.

We are using the following code to init the SDK and hoping to see the alert.

let settings = ALSdk.shared().settings
settings.userIdentifier = homeDirectory.localAccount.tid
settings.termsAndPrivacyPolicyFlowSettings.isEnabled = true
settings.termsAndPrivacyPolicyFlowSettings.privacyPolicyURL = URL(string: "url")
settings.termsAndPrivacyPolicyFlowSettings.termsOfServiceURL = URL(string: "url")

 ALSdk.shared().initialize(with: initConfig)

Expected Behavior

Execute the code, on a new device, and expect the alert to be shown again.

How to Reproduce

Execute the code, above and receive the Terms and Privacy Flow alert. Delete the app, make a new account, and execute the code.

Additional Info

There should be a way to retest the alert, but we cannot find any docs on how to do so. I have only been able to see the alert once in my testing and never again

applovinAsh commented 3 weeks ago

@piyush-singh-ss, Are you able to recreate the issue in a demo application or only in your app? If so, can you provide the application here so we can investigate?

For further information regarding our Terms and Privacy flow, see here: https://developers.applovin.com/en/ios/overview/terms-and-privacy-policy-flow/

piyush-singh-ss commented 2 weeks ago

@applovinAsh it's quite a lift for us to extract out the functionality into a demo app. It would greatly help us out if you could tell us: what conditions need to be met to get this pop up modal to show up ?

Screenshot 2024-07-08 at 10 35 10 AM

applovinAsh commented 2 weeks ago

@piyush-singh-ss - please check out our documentation that explains how to trigger the CMP flow for testing: https://developers.applovin.com/en/ios/overview/terms-and-privacy-policy-flow#show-gdpr-flow-to-existing-users.