I'm trying to ask for contact permission after some timeout delay through webpage from Android Chrome and others but it's not working- I tried with following attempts: setTimeout, await etc for the original code below which is without a delay.
onclick = async () => {
(async () => {
await navigator.contacts.select(["name"], {});
})();
What's the reason it's not working? I thought setTimeout()
could not work since it's using async()
but then await should do the work but that's not the case.
I tried with following attempts: setTimeout, await etc for the original code below which is without a delay.