Closed
Bug 881693
Opened 12 years ago
Closed 11 years ago
mozContacts.getAll is undefined on geekphone phone, but ok on simulator
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Firefox OS Graveyard
Gaia::Contacts
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: ludovic.fardel, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20130608 Firefox/24.0 (Nightly/Aurora)
Build ID: 20130608031212
Steps to reproduce:
In a hosted privileged app with contacts (readonly) permission, I want to get all contacts with:
if ( navigator.mozContacts && navigator.mozContacts.getAll ) {
navigator.mozContacts.getAll();
...
}
The problematic example app is there: https://github.com/lazybean/MemoPhone
Actual results:
On the simulator, the page to ask permission appears. On the geekphones I tried, nothing.
navigator.mozContacts.getAll is actually undefined.
Expected results:
I should see the page asking for permission.
Comment 1•12 years ago
|
||
Hi,
that .getAll method was added to the contacts API, but probably is not added to the version running in your geeksphone.
I would suggest to update your rom to a nightly build if you still want to use that api, if not, you still can fallback to use the non cursor api.
Cheers,
F.
Reporter | ||
Comment 2•12 years ago
|
||
Hi,
Thanks for advice.
I'll try when I will again get access to a phone.
Comment 3•11 years ago
|
||
Closing as this was tested with a version prior 1.1
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•