How to start/stop Android sdk at run time | Community
Skip to main content
October 11, 2021
Solved

How to start/stop Android sdk at run time

  • October 11, 2021
  • 1 reply
  • 1309 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arjun_bhadra

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

1 reply

arjun_bhadra
Adobe Employee
arjun_bhadraAdobe EmployeeAccepted solution
Adobe Employee
October 11, 2021

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