bgever commented on issue #898:
URL: https://github.com/apache/cordova-ios/issues/898#issuecomment-729450208


   I found that using `window.open()` inside a synchronous `click` event 
handler works, but if the `window.open()` is called asynchronously (e.g. in an 
Angular rxjs observable), then it is blocked.
   
   This blocking behavior can be tested when you attach the Safari devtools, 
and then try to run `window.open()` from the Console, it will also return 
`null`. However, if you attach a click event listener to any element from the 
Console, and call the same window.open() inside the handler, it will execute 
when clicking the element. This seems to be a Safari security feature.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to