Today I adjusted push notification processing on app side
Now whenever push is received from FCM or APNs (always empty push), app fetches push notifications from server and delete the ones that are shown to the user
Today I switched from Room to Preferences DataStore to cache encrypted user key
I need to have the option to listen for key changes but since there is only one key for user it doesn't make sense to use full Room table just for that
Who's got awesome user session management logic in their app?
This guy ☝️😎🤣
I am now checking response codes and reasons from Appwrite to logout user right away - clean up local data, stop all processing and go back to login screen