feat: added persistence support for advertisingId and added a new api to clear advertisingId
Added support for persisting advertisingId, so the advertisingId would be attached to all the events made on subsequent app launches.
Added clearAdvertisingId() API on RudderClient to clear the persisted advertisingId. This is an instance method and can be called only after SDK initialization.
If the putAdvertisingId() API is called when the auto collection of advertisingId is enabled, the advertisingId passed by the API is considered, and the auto collection of advertisingId is disabled.
Auto collection of advertising ID is enabled back only when the manually set advertising Id is cleared by calling the clearAdvertisementId() API.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[ ] Version upgraded (project, README, gradle, podspec etc)
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added unit tests for the code
[ ] I have made corresponding changes to the documentation
feat: added persistence support for advertisingId and added a new api to clear advertisingId
advertisingId
, so the advertisingId would be attached to all the events made on subsequent app launches.clearAdvertisingId()
API on RudderClient to clear the persisted advertisingId. This is an instance method and can be called only after SDK initialization.putAdvertisingId()
API is called when theauto collection of advertisingId
is enabled, the advertisingId passed by the API is considered, and the auto collection of advertisingId is disabled.clearAdvertisementId()
API.Type of change
Checklist: