OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

[Bug]: removeEmail not working

Open ospaarmann opened this issue 2 months ago • 3 comments

What happened?

When calling OneSignal.User.removeEmail("[email protected]");, the email is not removed from OneSignal.

Steps to reproduce?

1. Install `5.3.4` of the Flutter SDK
2. Initialize OneSignal


OneSignal.Debug.setLogLevel(OSLogLevel.none);
OneSignal.Debug.setAlertLevel(OSLogLevel.none);
OneSignal.initialize(Env.oneSignalAppId);


3. Add Email with `OneSignal.User.addEmail("[email protected]");`
4. Try to remove the email with `OneSignal.User.removeEmail("[email protected]");`

Please note: I am not logging the user out before removing the email. This happens on a logged in user. The result is just nothing. No error, no result.

This is critical for us to be GDPR compliant. When a user deletes their account, we have to delete their data, also from other services. I don't want to write a backend integration if the SDK did and should provide this functionality.

What did you expect to happen?

The email should be removed from OneSignal

OneSignal Flutter SDK version

5.3.4

Which platform(s) are affected?

  • [x] iOS
  • [ ] Android

Relevant log output


Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

ospaarmann avatar Sep 23 '25 08:09 ospaarmann