-
Notifications
You must be signed in to change notification settings - Fork 218
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
[Bug]: removeSms and removeEmail do not work after logout user #840
Comments
Hi @inesga,
When you say "start new session with same user", are you logging the user back in before calling If not, this is expected behavior. After you call |
When I say "start new session with same user" I do call login. The api methods are called this order:
If I remove email and sms in the first session (before point 6), everything goes well, but when I logout and login again, noting happens. This also happens if I login with the same user in other phone. |
Hi @inesga thank you for the additional details. I will try to reproduce with those steps and reach out with any questions. This is happening 100% of the time for you with these steps? |
I suppose so, yes. |
Hello there--apologies that this issue has gone stale. Is this still an issue for you? |
What happened?
I'm using OneSignal 5.1.0 to subscribe users and get data in my flutter app.
When I use other session to save / remove data, the removeEmail and removeSms don't remove the subscriptions.
Testing with the rest requests, everything works fine, but not using the api call.
My flutter doctor:
[✓] Flutter (Channel stable, 2.10.5, on macOS 14.2.1 23C71 darwin-arm, locale en-PT)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] Connected device (3 available)
Api methods called:
OneSignal.User.removeSms(_smsNumber);
OneSignal.User.removeEmail(_email);
Steps to reproduce?
What did you expect to happen?
I expected the api to remove email and sms data from onesignal.
OneSignal Flutter SDK version
5.1.0
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: