Appwrite handles push targets as user based. The biggest issue the situation where to cant trigger delete_push_target like user deletes an app and reinstalls. Currently am handling push_targets by assigning ID same as session ID so when user logs out i also delete his/her push. But when user deletes an app then i cant delete that push, so the database will be full of targets with expired tokens. Also i cant assign userID to because a user can login to multiple devices. Whats the best way to handle push targets?
My suggestion is to allow us to assign target_id to UDID. also allow overrides of targets where by if user logouts and logins with another account. then the target is overriden to a new user account.
Recommended threads
- Projects can't be accessed
It's been like 2 weeks and I can't access my projects. After clicking any, it loads, then stops and nothing happens. No error is displayed. The projects are o...
- Issue Related to Presence
```PresenceService: upsert error – AppwriteException: user_unauthorized, The current user is not authorized to perform the requested action. (401) ...
- login is broken
even used VPN not working, searched for a reason didn't found any used email not working brave browser