Skip to content

Jetpack: show a notice to download the backup #14030

@leandroalonso

Description

@leandroalonso

Acceptance criterias

Downloading the file

  1. When a Backup is available (created either from the web or the app)
  2. The user can see a notice to download the file
  3. When the user taps download the file is downloaded

Dismissing the notice

  1. When a Backup is available (created either from the web or the app)
  2. The user can see a notice to download the file
  3. 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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions