-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Jetpack: show a notice to download the backup #14030
Copy link
Copy link
Closed
Labels
Description
Acceptance criterias
Downloading the file
- When a Backup is available (created either from the web or the app)
- The user can see a notice to download the file
- When the user taps download the file is downloaded
Dismissing the notice
- When a Backup is available (created either from the web or the app)
- The user can see a notice to download the file
- When the user taps dismiss the notice is dismissed and it doesn't appear again
Design
In iOS was used an already existent component to show this notice:
I would recommend the same in Android (if such component exists), but that's up to @osullivanchris.
Technical information
The list of files available to download can be obtained from GET: /wpcom/v2/sites/<siteID>/rewind/downloads?_envelope=1. Remember to check validUntil before displaying the notice.
If the user dismisses the notice, a POST request should be made to /v2/sites/<siteID>/rewind/downloads/<downloadID>?_envelope=1. This dismisses the notice in the app and in the web (so no need to persist in the client that information, next time you request the list of downloads it won't be there).
Reactions are currently unavailable
