Quantcast
Viewing all articles
Browse latest Browse all 8068

Ti.Contacts.getAllPeople() return null

Hello,

I am using Ti.Contacts.getAllPeople() but it returns null when I use it just after installing the app.

I am checking previously If I have rights to read the agenda and everything seems to be right:

if (Ti.Contacts.contactsAuthorization == Ti.Contacts.AUTHORIZATION_AUTHORIZED){
    var contacts = Ti.Contacts.getAllPeople();
}
But if I close the app and I turn it on again, it works fine.

Any suggestion?

Thanks. J. Pablo.


Viewing all articles
Browse latest Browse all 8068

Trending Articles