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
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...