Expand my Community achievements bar.

SOLVED

How to start/stop Android sdk at run time

Avatar

Level 1

I am new to Adobe's mobile sdk. In my app, I need to start and stop any data tracking (Mainly the analytics) when user switches a toggle on and off on a settings screen. But, I cannot find any way to do it through the MobiileCore object. Does anyone know how to do it?

 

Another question is if Adobe mobile sdk automatically track any events? If I don't call trackAction and trackState, does the sdk track any auto events?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

You can switch privacy status from opt-in to opt-out in order to stop the pings from going out. You can use MobileCore.setPrivacyStatus API 

refer: https://aep-sdks.gitbook.io/docs/resources/privacy-and-gdpr#set-and-get-privacy-status

Keep in mind, this would reset ECID as well, so everytime with opt-in new ECID will be generated and it will be counted as a new visitor/user.

Thanks,
Arjun

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

You can switch privacy status from opt-in to opt-out in order to stop the pings from going out. You can use MobileCore.setPrivacyStatus API 

refer: https://aep-sdks.gitbook.io/docs/resources/privacy-and-gdpr#set-and-get-privacy-status

Keep in mind, this would reset ECID as well, so everytime with opt-in new ECID will be generated and it will be counted as a new visitor/user.

Thanks,
Arjun