You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/10/19 15:02:07 UTC
[GitHub] [cordova-ios] spoxies commented on issue #1120: Presenting with JS Alert() dead lock
spoxies commented on issue #1120:
URL: https://github.com/apache/cordova-ios/issues/1120#issuecomment-1284157765
This is indeed quite an issue as Lou-Kuang says, and I'd like to chip in with some extra context to replicate the issue (and show its urgency).
So in schort if webKit or the underlaying iOS presents a UIAlertController and whilst that is open, a `alert(..), confirm(...)` is called, the app will be stuck.
This commonly happens if a user is prompted for some native permission, or shake the device to trigger "Shake to Undo". As far as the javascript goes nothing is halted, so some event might trigger an alert
So an alternative/easy way to replicate this issue is execute:
```javascript
setTimeout(function(){
alert('This will mess up');
}, 5000);
```
and shake the device (e.g. like a Polaroid picture), to trigger native Undo dialog....app wil be dead
--
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.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org