Version: Smart Feature Phone 2.5

DataStore.revisionId

The revisionId read-only property of the DataStore interface returns the current data store's current revision ID. This ID can be tracked, allowing you to synchronize apps using the data store to this point in its history.

Syntax#

myStoreName = store.revisionId;

Value#

A DOMString.

Example#

The following example gets all the data stores on the device called "contacts", then logs the current revision ID to the console:

navigator.getDataStores('contacts').then(function(stores) {
console.log(stores[0].revisionId);
});