[
https://issues.apache.org/jira/browse/CB-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257686#comment-13257686
]
Shazron Abdullah commented on CB-497:
-------------------------------------
No it's nothing to do with the new fixes, it's iOS. You cannot show any
interactive elements immediately during pause/resume, they will hang your app
(similarly when launched from a protocol handler). Wrap any content in your
resume handler with a setTimeout with a timeout value of zero, it should work.
eg
{code}
document.addEventListener("resume", onResume, false);
function onResume()
{
setTimeout(function() {
// do your thing here!
}, 0);
}
{code}
It's an iOS Quirk that is documented in the docs I believe - it's been added
for the Pause event, but not Resume event - I'll fix the docs.
> online and offline events are not being fired in 1.6.0
> ------------------------------------------------------
>
> Key: CB-497
> URL: https://issues.apache.org/jira/browse/CB-497
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.6.0
> Environment: IOS4,5 xcode4+
> Reporter: Emile khattar
> Assignee: Shazron Abdullah
> Fix For: 1.6.1
>
>
> - after updating to 1.6 i notice that JS calls with Cordova capital C are not
> working example: Cordova.exec(..)
> replacing C with c solved the problem
> - Some Cordova classes like CDVConnection.m had some JS firing with Cordova
> variable with "C" exp: line103" Cordova.fireDocumentEvent('online');"];
> A review is needed to make sure no Cordova variables are needed/called
--
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