Version: Smart Feature Phone 2.5

DataStore.owner

The owner read-only property of the DataStore interface returns the name of the app that owns the current data store.

Syntax#

myStoreOwner = store.owner;

Value#

A DOMString.

Example#

The following example gets all the data stores on the device called "contacts", then logs the data store owner to the console:

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