-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clearIdentify does not remove device from dashboard on iOS #818
Comments
Hi @AristideVB Our team tried to reproduce the issue using the steps you provided, but unfortunately, we were not able to replicate it on our end. Could you please provide more detailed steps to help us reproduce the issue or share if there is a specific scenario in which the tokens are not removed from a profile on calling |
I will try to provide a min reproductible sample in a couple of days, please note I'm using the 2.14.1 version (since it's the latest version working with the flutter Customer.io SDK) Note that I'm calling region: Region.eu, |
Thanks, @AristideVB, for providing additional details to help reproduce the issue. We'll attempt to reproduce it using the information you have shared. In the meantime, we would appreciate it if you could share a minimum reproducible app with us to help us debug the issue more effectively. |
Hello @ami-aman thank you for your follow up, I’ve been working on reproducing a bug using your iOS SDK and have created a minimal reproducible example, which you can find here: GitHub Repository - v2-clear-identify-bug In the attemptToReproduceBug method, I perform the following steps:
I’ve observed inconsistent results with this process, so I'm not sure you will be able to reproduce it. Sometimes, the device token is correctly removed from the first logged-in account during step 3. Other times, it isn’t removed, and the first account remains associated with the device token in the Customer.io dashboard. Even if step 4 has successfully identified another existing user. I’m unsure why this inconsistency occurs. Additionally, I noticed that the iOS SDK assumes we don’t want two accounts connected to the same device token, as indicated by this log message:
I agree with this rule, However, this rule doesn’t seem to be enforced on the backend, as I’m able to see multiple accounts with the same device token on the Customer.io dashboard. |
Hey there ! Thank you for taking the time to share the sample app with us. I wanted to let you know that our team will review the app and attempt to reproduce the issue. We’ll keep you updated and get back to you with an update as soon as possible. |
Ok thank you @ami-aman
I really think you should renforce this SDK rule on your backend, multiple accounts should not be able to have the same device token (I see it happening in our users who switch accounts thought) |
Hi @AristideVB , I wanted to let you know that our team has identified the issue and is actively working on a fix. While we don’t have a specific timeline to share just yet, I assure you that we are on it and will provide an update here as soon as possible. |
SDK version:
Version: ~> 2.14.1
Environment:
Production - Debug
Are logs available?
Yes, logs are available and have been sanitized for sensitive information.
Describe the bug
When calling
customerio.clearIdentify
on iOS, the logs suggest that the profile is successfully cleared, and the device token is deleted. However, despite this, the device is not removed from the Customer.IO dashboard, and push notifications continue to be sent to the old account. Additionally, when I identify with a new account, the device remains associated with the previous account, which results in the device potentially receiving unwanted notifications.To Reproduce
CustomerIO.clearIdentity
on an iOS device from Flutter SDKExpected behavior
The device should be removed from the old account on the Customer.IO dashboard after
customerio.clearIdentity
is called, and no push notifications should be sent to the old account. The device should be correctly associated with the new account after re-identifying.Screenshots
N/A
Additional context
This issue occurs in a Flutter app using the Flutter SDK. The method channels seem to be called correctly, but the device is not removed from the previous account on the Customer.IO dashboard.
The text was updated successfully, but these errors were encountered: