Software Archive
Read-only legacy content
17060 Discussions

Contact Phone Numbers in USB Debug Mode

Tarun_C_
Beginner
301 Views

Hi,

I am testing my app in USB Debug Mode. It is the first time that I am trying to read contacts. Please excuse me if this is a dumb question.

In the console log i see that cordova.js says "adding proxy for contacts". So I assume all is well. The functions do not produce error.

I try to read the contacts with

currentContacts = intel.xdk.contacts.getContactList();

The value of currentContacts comes as [ undefined, undefined, undefined ]

Is that because I am in debug mode ? Or am I doing something wrong.

Thanks for any and all support.

Cheers

TeaCii

0 Kudos
2 Replies
Amrita_C_Intel
Employee
301 Views

Did you try installing it on device and testing it? I would recommend to test your app on device.

0 Kudos
PaulF_IntelCorp
Employee
301 Views

That API has been deprecated in favor of the standard Cordova API. You'll find more examples out there for the Cordova version, which I recommend you use. In general, please use the Cordova APIs rather than the intel.xdk namespace APIs.

0 Kudos
Reply