I do this for android notifications
TypeScript
ID.unique(), // targetId
token, // identifier
this._pushNotificationsProvider
)```
after user login, I don't check previous target exists neither delete target when user logs out
but I'm using `ID.unique()` so why does it launch this error?
TL;DR
Developers are experiencing an error stating "A target with the same ID already exists" when trying to update the user's phone from the dashboard. The issue might be related to not checking if a previous target exists or deleting the target when the user logs out. Despite using `ID.unique()`, the error persists.
Solution: Implement a check to verify if the target already exists before creating a new one, and consider deleting the target when the user logs out to prevent conflicts.Same stated happening for me when I try to update the User phone from the app write dashboard (selfhosted-latest)
Recommended threads
- hi guys! my site is not accesible in my ...
- Appwrite github organization error
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...