I’m using Ionic Deploy. I want to give my users the option to update now or later, but I also want to require some snapshots to be used no matter what (e.g. the API is changing, and we want all users to get the latest snapshot that uses the new API).
To do so, I’m setting metadata on snapshots, e.g.
required metadata to
Then, when checking if there are any snapshot updates available, I want to look at metadata and either force the new snapshot to be downloaded or let the user decide when to download the new snapshot.
My issue is that the Ionic deploy
check() only returns true or false… no information on the available update.
getMetadata()'s source says this:
Fetches the metadata for a given snapshot. If no UUID is given, it will attempt to grab the metadata for the most recently known snapshot.
I don’t want the metadata of the currently installed snapshot. I want the metadata of the available snapshot. But, I have no way of getting the uuid of the available snapshot, so I have no way of knowing if the available update is required or not.
Is there a better way to handle required snapshots?