incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-1296) deviceready event is never fired on iOS 4.2.1
Date Thu, 30 Aug 2012 14:15:07 GMT

     [ https://issues.apache.org/jira/browse/CB-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Grieve resolved CB-1296.
-------------------------------

    Resolution: Fixed

Fixed it by just setting the default bridge mode to IFRAME for 4.x devices.

commit: https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=b17e8cdf69b067f9fc7326164b5dbdea307ae85f

I updated the pre-built JS in the ios repo as well.

While debugging this, I did find that changing the XHR from a HEAD request to a GET made the
request show up in the URIProtocol. It then properly made its way over to the UI thread to
execute the plugin. It would go into deadlock at that point though, so I stopped pursuing
it. IFRAME bridge mode is faster anyway and doesn't have any bugs that it triggers on 4.x

                
> deviceready event is never fired on iOS 4.2.1
> ---------------------------------------------
>
>                 Key: CB-1296
>                 URL: https://issues.apache.org/jira/browse/CB-1296
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS, iOS
>    Affects Versions: 2.1.0
>         Environment: iOS 4.2.1 (iPod Touch 2nd Gen)
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 2.1.0
>
>
> deviceready event is never fired on iOS 4.2.1.
> Debugging this, I found that the problem is onCordovaConnectionReady is never fired,
the deviceready channel is waiting for this event before it fires.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message