Back

Running updateEmail results in user_target_already_exists exception

  • 0
  • Flutter
  • Messaging
  • Auth
  • Cloud
memoonlite
26 Jun, 2024, 12:29

Hello everyone!

I'm running the following as part of my app (Flutter), so on the client side:

TypeScript
    'email@example.com', // email
    'password' // password
);```

This results in an exception:

``user_target_already_exists``

I understand this exception has to do with push notifications, which I have set up in my app. But I don't understand why ``updateEmail`` triggers this. ``updateEmail`` has nothing to do with push notifications. Does anyone have an idea what's going on?
TL;DR
Issue: When running `updateEmail` on Flutter app, `user_target_already_exists` exception occurs, related to push notifications setup. Solution: The `user_target_already_exists` exception may be caused by conflicting registration of the user for push notifications. Review the push notifications setup in the app to ensure that there are no duplicate registrations for the same user.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more