When using @dfinity/auth-client@0.20.2 connect to ii in Safari browser, if the “Pop up Windows” option is turned off, there happened an error “Pop up window blocked”. Is there a way to solve this problem?
Hi,
- Are you still experiencing the issue?
- Is the issue occurring with specific applications or with any dApps on the IC?
- Have you encountered the issue even after refreshing the page?
- On which device are you facing the issue: macOS, iPad, or iPhone?
- What is the version of the device?
- Which version of Safari are you using?
- Do you have any plugins installed in your browser?
To avoid popup blockers in most browsers, make sure to call the AuthClient login method on user interaction e.g. event handler of a button click. Most browsers will block popups that are created outside of user interaction e.g. immediately after opening a page or 2 sec after clicking a button.
I don’t know why, I assumed OP was asking as a user, not from a developer perspective. That’s good call. Thanks for the add-on!
Thanks for your answer. It’s seems a async function before call the AuthClient login method would case this error.
2 Likes