lytics / ios-sdk

MIT License
0 stars 0 forks source link

New anonymousIdentifier only gets created when user if flushed. #41

Closed markhayden closed 1 year ago

markhayden commented 1 year ago

It should be possible for the SDK user to change the anonymousIdentityKey at any point during their apps lifetime. Currently, if a user goes to the app and gets say a _uid which is the default key it works great. However, if I then change the config and reoload the app to say _newuid we don't set that key until we manually flush the entire identity. This behavior should be:

  1. When the application initializes we make sure a value has been set for anonymousIdentityKey and if it has no value currently we generate one. We don't need to worry about cleaning up the old ids or anything like that as we'll handle the resolution on our end but we should proactively ensure that value is being generated and not require a complete user flush to trigger it.