Iterable / iterable-swift-sdk

Iterable's iOS SDK. Receive and track pushes to Iterable from your iOS app.
https://iterable.com/
MIT License
87 stars 74 forks source link

[MOB-8962] updates merge flow to align with Android #790

Closed evantk91 closed 3 months ago

evantk91 commented 3 months ago

🔹 Jira Ticket(s)

✏️ Description

This pull request makes a call to setUserId when the anonymous user is created. I also updated the flow to accommodate the default merge parameter which should be true when the merge parameter is not provided. Also, introduces the isAnon parameter so that the stored anonymous id is not cleared when the anonymous user is set.