alert added
This commit is contained in:
@@ -22,19 +22,21 @@ export class ContactsDataService {
|
||||
//return;
|
||||
}
|
||||
else{
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
/*
|
||||
debugger;
|
||||
|
||||
Contacts.getContacts({projection: {
|
||||
name: true,
|
||||
phones: true,
|
||||
image: true,
|
||||
emails: true
|
||||
}}).then( result=>{
|
||||
console.log(result);
|
||||
this.cacheContactsForAccount(result);
|
||||
alert("0001");
|
||||
console.log(result);
|
||||
this.cacheContactsForAccount(result);
|
||||
});
|
||||
*/
|
||||
|
||||
const retrieveListOfContacts = async () => {
|
||||
const projection = {
|
||||
// Specify which fields should be retrieved.
|
||||
@@ -48,7 +50,9 @@ export class ContactsDataService {
|
||||
const result = await Contacts.getContacts({
|
||||
projection,
|
||||
}).then(result=>{
|
||||
alert("0002");
|
||||
console.log(result);
|
||||
result.contacts
|
||||
this.cacheContactsForAccount(result);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user