[
https://issues.apache.org/jira/browse/CB-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261150#comment-13261150
]
Shazron Abdullah commented on CB-541:
-------------------------------------
Here's what I would say:
iOS Quirk:
Interactive functions like alert() when the resume event fires will need to be
wrapped in a setTimeout call with a timeout value of zero, or else the app will
hang. e.g.
{code}
document.addEventListener("resume", onResume, false);
function onResume() {
setTimeout(function() {
// TODO: do your thing!
}, 0);
}
{code}
> Add iOS Quirk for resume event
> ------------------------------
>
> Key: CB-541
> URL: https://issues.apache.org/jira/browse/CB-541
> Project: Apache Callback
> Issue Type: Bug
> Components: Docs, iOS
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Fix For: 1.7.0
>
>
> See pause event's iOS Quirk. Interactive elements should not be displayed on
> resume, it will hang the app. Wrap it in a setTimeout with timeout of zero.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira