mozContacts.getAll is undefined on geekphone phone, but ok on simulator

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
5 years ago
5 years ago

People

(Reporter: ludovic.fardel, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
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.
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

5 years ago
Hi,

Thanks for advice.
I'll try when I will again get access to a phone.
Closing as this was tested with a version prior 1.1
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.