You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Sakari Jokinen (JIRA)" <ji...@apache.org> on 2012/09/24 13:14:07 UTC

[jira] [Created] (CB-1529) 'deviceready' event is not fired when loading a remote page in webview

Sakari Jokinen created CB-1529:
----------------------------------

             Summary: 'deviceready' event is not fired when loading a remote page in webview
                 Key: CB-1529
                 URL: https://issues.apache.org/jira/browse/CB-1529
             Project: Apache Cordova
          Issue Type: Bug
    Affects Versions: 2.1.0
         Environment: ios 5, xcode 4.4.1
            Reporter: Sakari Jokinen


I'm trying to create a wrapper app for iOS that would just load our built html, js, etc assets from a server to the device instead of us having to build the xcode project and distribute that. This would be used only for our internal development and debugging ie, I'm aware that this will not be accepted to the app store.
 
In my xcode cordova project I have an index.html that just reloads a page from a remote server in the webview. The remote page includes the script tag to load the cordova.js. With cordova 1.7.0 everything works but with cordova 2.1.0 I do not get the 'deviceready' event. 

If I change the 'bridgeMode' to 'IFRAME_NAV' in the cordova.js the 'deviceready' event is fired, but then of course the input events are broken. I suspect that the problem is with file:// protocol not being allowed for remote pages while gap:// is allowed.

Is there a workaround for getting both working or any other way to satisfy our needs?

--
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

[jira] [Commented] (CB-1529) 'deviceready' event is not fired when loading a remote page in webview

Posted by "Julio Cezar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461809#comment-13461809 ] 

Julio Cezar commented on CB-1529:
---------------------------------

I am having the same issues and I have found no solution to this problem so far.

1) Here my JIRA Ticket:
https://issues.apache.org/jira/browse/CB-1525
2) And my StackOverflow question:
http://stackoverflow.com/questions/12543979/phonegap-2-1-after-upgrade-2-0-to-2-1-ondeviceready-is-not-being-called-remot


                
> 'deviceready' event is not fired when loading a remote page in webview
> ----------------------------------------------------------------------
>
>                 Key: CB-1529
>                 URL: https://issues.apache.org/jira/browse/CB-1529
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: ios 5, xcode 4.4.1
>            Reporter: Sakari Jokinen
>
> I'm trying to create a wrapper app for iOS that would just load our built html, js, etc assets from a server to the device instead of us having to build the xcode project and distribute that. This would be used only for our internal development and debugging ie, I'm aware that this will not be accepted to the app store.
>  
> In my xcode cordova project I have an index.html that just reloads a page from a remote server in the webview. The remote page includes the script tag to load the cordova.js. With cordova 1.7.0 everything works but with cordova 2.1.0 I do not get the 'deviceready' event. 
> If I change the 'bridgeMode' to 'IFRAME_NAV' in the cordova.js the 'deviceready' event is fired, but then of course the input events are broken. I suspect that the problem is with file:// protocol not being allowed for remote pages while gap:// is allowed.
> Is there a workaround for getting both working or any other way to satisfy our needs?

--
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

[jira] [Resolved] (CB-1529) 'deviceready' event is not fired when loading a remote page in webview

Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Grieve resolved CB-1529.
-------------------------------

    Resolution: Duplicate
      Assignee: Andrew Grieve

Let's focus comments on https://issues.apache.org/jira/browse/CB-1525
                
> 'deviceready' event is not fired when loading a remote page in webview
> ----------------------------------------------------------------------
>
>                 Key: CB-1529
>                 URL: https://issues.apache.org/jira/browse/CB-1529
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: ios 5, xcode 4.4.1
>            Reporter: Sakari Jokinen
>            Assignee: Andrew Grieve
>
> I'm trying to create a wrapper app for iOS that would just load our built html, js, etc assets from a server to the device instead of us having to build the xcode project and distribute that. This would be used only for our internal development and debugging ie, I'm aware that this will not be accepted to the app store.
>  
> In my xcode cordova project I have an index.html that just reloads a page from a remote server in the webview. The remote page includes the script tag to load the cordova.js. With cordova 1.7.0 everything works but with cordova 2.1.0 I do not get the 'deviceready' event. 
> If I change the 'bridgeMode' to 'IFRAME_NAV' in the cordova.js the 'deviceready' event is fired, but then of course the input events are broken. I suspect that the problem is with file:// protocol not being allowed for remote pages while gap:// is allowed.
> Is there a workaround for getting both working or any other way to satisfy our needs?

--
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