I see handled exceptions happening in the background for users that have filled their Dropbox account or their tokens are invalid. These failures happen silently and users may not know that their data is no longer backing up. To alert these users this PR adds notifications to tell the user they need to take action with their Dropbox account.
For users that have a full Dropbox:
We will send users a notification that says their automatic backup failed because their Dropbox is full.
We will continue to attempt to backup their entries (according to the user's selected cadence) and we will send the notification each time we fail for this reason.
For users that have an invalid token:
We will send users a notification that says there was a problem with their automatic backups and that they need to click the notification to re-enable automatic backups
Clicking the notification will take users to the settings screen where they can turn on automatic backup again
When this happens to a user we will turn off automatic backup and dismiss the notification when they have re-auth'd with Dropbox
:green_heart: How did you test it?
[x] User with over-quota Dropbox sees notification when we try to automatically backup their data
[x] User with over-quota can open the Dropbox help page or view their Dropbox account settings
[x] User with invalid token issue will see a notification when we try to automatically backup their data
[x] User with invalid token issue can click the notification and see the settings page
[x] User with invalid token issue and biometric locking enabled can click the notification, complete biometric authentication, and then see the settings page
[x] User with invalid token issue will see the automatic backup feature has been disabled in the settings screen
:scroll: Description
I see handled exceptions happening in the background for users that have filled their Dropbox account or their tokens are invalid. These failures happen silently and users may not know that their data is no longer backing up. To alert these users this PR adds notifications to tell the user they need to take action with their Dropbox account.
For users that have a full Dropbox:
For users that have an invalid token:
:green_heart: How did you test it?
:camera_flash: Screenshots / GIFs
Overquota user: https://user-images.githubusercontent.com/10744793/147525159-1a6c137a-060d-4c8f-8d1e-3ab7b980368f.mp4
User with Dropbox auth issues: https://user-images.githubusercontent.com/10744793/147526088-f32f87e6-4377-4f35-91dc-0901d5bc9c13.mp4