I have googled and tried to follow the solutions posted but did not come to a solution.
Does anyone have an idea why
this.contacts.find(["name", "phoneNumbers"],
{multiple: true, hasPhoneNumber: true}).then(
(contacts) =>
{
this.contactList = contacts;
}
).catch(err => {
console.log('contacts error');
console.log(err);
});
is freezing my whole app? While the contacts
are grabbed the gui does not respond anymore.
I am using : -
import { Contacts } from '@ionic-native/contacts/ngx';
but I could not solve the problem. I have about 2500 contacts on my iPhone. When using the code on simulator
it is fine but simulator
only has 6 contacts.
Log
says 'Fetching in bulk 250 contacts!
' plenty of time.
I'm really stuck and would be very happy if someone could give me a hint to solve this problem.
Best Regards