I've tried to access the contacts data store using a worker, it worked but it returns 0 data stores when I do:
navigator.getDataStores('contacts')
Does the native KaiOS contacts app even use a data store? How do I access the native contacts data in my app?
Datastore on FirefoxOS
The
navigator.getDataStores('contacts')seems only supported on Firefox OS for Desktop, not on the version for Mobiles (Gecko), see the docs. If supported it would return aPromiseand not0.How to use
mozContactsYou can access the contacts using
navigator.mozContacts. This instance supports methodsfind(searchOptions, callback),getAll(callback)andsave(contact, callback).See also:
gaiasearch formozContacts