The idea of this PR is to reduce the number of redundant request to the backend where possible. This PR also ensures that when token data is present that it gets assigned to the correct profile when identifiers change.
Other changes:
We no longer send an anonymous profile request when the sdk is initialized.
When the SDK is not initialized in DEBUG mode we throw a fatalError when setter methods are called. This will not happen in release mode.
When switch identifiers we may send a token request instead of profile request to ensure the token data is assigned to the right profile
Check List
[ ] Are you changing anything with the public API?
[x] Have you tested this change on real device?
[x] Are your changes backwards compatible with previous SDK Versions?
[x] Have you added unit test coverage for your changes?
[x] Have you verified that your changes are compatible with all the operating system version this SDK currently supports?
Description
The idea of this PR is to reduce the number of redundant request to the backend where possible. This PR also ensures that when token data is present that it gets assigned to the correct profile when identifiers change.
Other changes:
Check List
Manual Test Plan
1.
Supporting Materials