
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
- "Index length is longer than the maximum...
In one my database, my attribute for `sid` seems to no more than 32 characters. I am not sure what 768 limit is here. Can't find it in the docs either. I need ...
- UI Navbar
navbar goes too dark at somepoint when scrolling.
- Issue with payment method
HELLO please I need to upgrade my plan ASAP, but my country has stopped visa cards, please my app is running and i have almost 500 users, Please how can I solv...
