You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Julio Cezar (JIRA)" <ji...@apache.org> on 2012/09/22 15:04:08 UTC

[jira] [Created] (CB-1525) PG 2.1: onDeviceReady() is not being called remotely, only locally

Julio Cezar created CB-1525:
-------------------------------

             Summary: PG 2.1: onDeviceReady() is not being called remotely, only locally 
                 Key: CB-1525
                 URL: https://issues.apache.org/jira/browse/CB-1525
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.1.0
         Environment: iPad 2, iOS 6, PhoneGap 2.1, Xcode 4.5
            Reporter: Julio Cezar
            Assignee: Shazron Abdullah



After upgrading to PhoneGap 2.1, my onDeviceReady() method is not being called anymore, on the server side. I have a HTML file locally, and locally the method onDeviceReady is being called without any problems. But after being redirected to a web page application, the onDeviceReady() method is not being called anymore. I did not have this kind of issue using PhoneGap 2.0. I have the same problem with the method onBodyLoad(): its being called without problems locally, but not on the server side, remotely.

I have made a completely new (template) Project, using the console (PG "create" script), and added the www folder to my server. Locally (local index.html), the native App makes a redirection to the index.html in the remote www folder. I have realized, that the same problem always happen: the onDeviceLoad method is not being called. And that's the template project from phonegap. Locally it works ok, but not when its on the server. The allowed ExternalHosts has been set to '*' (all hosts allowed).

--
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-1525) PG 2.1: onDeviceReady() is not being called remotely, only locally

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

Andrew Grieve commented on CB-1525:
-----------------------------------

Maybe just wait for 2.2 to be released. We should have an RC out either today or tomorrow that you can try.
                
> PG 2.1: onDeviceReady() is not being called remotely, only locally 
> -------------------------------------------------------------------
>
>                 Key: CB-1525
>                 URL: https://issues.apache.org/jira/browse/CB-1525
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPad 2, iOS 6, PhoneGap 2.1, Xcode 4.5
>            Reporter: Julio Cezar
>            Assignee: Andrew Grieve
>              Labels: onBodyLoad, onDeviceReady
>             Fix For: 2.2.0
>
>
> After upgrading to PhoneGap 2.1, my onDeviceReady() method is not being called anymore, on the server side. I have a HTML file locally, and locally the method onDeviceReady is being called without any problems. But after being redirected to a web page application, the onDeviceReady() method is not being called anymore. I did not have this kind of issue using PhoneGap 2.0. I have the same problem with the method onBodyLoad(): its being called without problems locally, but not on the server side, remotely.
> I have made a completely new (template) Project, using the console (PG "create" script), and added the www folder to my server. Locally (local index.html), the native App makes a redirection to the index.html in the remote www folder. I have realized, that the same problem always happen: the onDeviceLoad method is not being called. And that's the template project from phonegap. Locally it works ok, but not when its on the server. The allowed ExternalHosts has been set to '*' (all hosts allowed).

--
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-1525) PG 2.1: onDeviceReady() is not being called remotely, only locally

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

Julio Cezar commented on CB-1525:
---------------------------------

Calling "device.name" returns "null" when it is called remotely, but it does not return null when called locally. It seens like PhoneGap is not being initialized remotely, but only with local files.
TEST SCHEME: Use safari developer tools (or WEINRE) to call arbitrary JavaScript code (JavaScript Injections) and call "alert(device.name);". An alert shows up. If the index.html was read locally, the alert shows the device name, but if the index.html was placed on a remote server, the alert shows the string "null"
                
> PG 2.1: onDeviceReady() is not being called remotely, only locally 
> -------------------------------------------------------------------
>
>                 Key: CB-1525
>                 URL: https://issues.apache.org/jira/browse/CB-1525
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPad 2, iOS 6, PhoneGap 2.1, Xcode 4.5
>            Reporter: Julio Cezar
>            Assignee: Shazron Abdullah
>              Labels: onBodyLoad, onDeviceReady
>
> After upgrading to PhoneGap 2.1, my onDeviceReady() method is not being called anymore, on the server side. I have a HTML file locally, and locally the method onDeviceReady is being called without any problems. But after being redirected to a web page application, the onDeviceReady() method is not being called anymore. I did not have this kind of issue using PhoneGap 2.0. I have the same problem with the method onBodyLoad(): its being called without problems locally, but not on the server side, remotely.
> I have made a completely new (template) Project, using the console (PG "create" script), and added the www folder to my server. Locally (local index.html), the native App makes a redirection to the index.html in the remote www folder. I have realized, that the same problem always happen: the onDeviceLoad method is not being called. And that's the template project from phonegap. Locally it works ok, but not when its on the server. The allowed ExternalHosts has been set to '*' (all hosts allowed).

--
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-1525) PG 2.1: onDeviceReady() is not being called remotely, only locally

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

sharon mantin commented on CB-1525:
-----------------------------------

we have the exact same problem, i did this change both on server side and local side but it didn't solve the problem - another ideas? 
                
> PG 2.1: onDeviceReady() is not being called remotely, only locally 
> -------------------------------------------------------------------
>
>                 Key: CB-1525
>                 URL: https://issues.apache.org/jira/browse/CB-1525
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPad 2, iOS 6, PhoneGap 2.1, Xcode 4.5
>            Reporter: Julio Cezar
>            Assignee: Andrew Grieve
>              Labels: onBodyLoad, onDeviceReady
>             Fix For: 2.2.0
>
>
> After upgrading to PhoneGap 2.1, my onDeviceReady() method is not being called anymore, on the server side. I have a HTML file locally, and locally the method onDeviceReady is being called without any problems. But after being redirected to a web page application, the onDeviceReady() method is not being called anymore. I did not have this kind of issue using PhoneGap 2.0. I have the same problem with the method onBodyLoad(): its being called without problems locally, but not on the server side, remotely.
> I have made a completely new (template) Project, using the console (PG "create" script), and added the www folder to my server. Locally (local index.html), the native App makes a redirection to the index.html in the remote www folder. I have realized, that the same problem always happen: the onDeviceLoad method is not being called. And that's the template project from phonegap. Locally it works ok, but not when its on the server. The allowed ExternalHosts has been set to '*' (all hosts allowed).

--
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-1525) PG 2.1: onDeviceReady() is not being called remotely, only locally

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

Andrew Grieve resolved CB-1525.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.0
         Assignee: Andrew Grieve  (was: Shazron Abdullah)

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

To resolve this locally, change the following line in your cordova.js file:
execXhr.open('HEAD', "file:///!gap_exec", true);

To: 
execXhr.open('HEAD', "/!gap_exec", true);


                
> PG 2.1: onDeviceReady() is not being called remotely, only locally 
> -------------------------------------------------------------------
>
>                 Key: CB-1525
>                 URL: https://issues.apache.org/jira/browse/CB-1525
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPad 2, iOS 6, PhoneGap 2.1, Xcode 4.5
>            Reporter: Julio Cezar
>            Assignee: Andrew Grieve
>              Labels: onBodyLoad, onDeviceReady
>             Fix For: 2.2.0
>
>
> After upgrading to PhoneGap 2.1, my onDeviceReady() method is not being called anymore, on the server side. I have a HTML file locally, and locally the method onDeviceReady is being called without any problems. But after being redirected to a web page application, the onDeviceReady() method is not being called anymore. I did not have this kind of issue using PhoneGap 2.0. I have the same problem with the method onBodyLoad(): its being called without problems locally, but not on the server side, remotely.
> I have made a completely new (template) Project, using the console (PG "create" script), and added the www folder to my server. Locally (local index.html), the native App makes a redirection to the index.html in the remote www folder. I have realized, that the same problem always happen: the onDeviceLoad method is not being called. And that's the template project from phonegap. Locally it works ok, but not when its on the server. The allowed ExternalHosts has been set to '*' (all hosts allowed).

--
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-1525) PG 2.1: onDeviceReady() is not being called remotely, only locally

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

Julio Cezar commented on CB-1525:
---------------------------------

SAME ISSUE REPORTED BY ANOTHER DEVELOPER WITH MORE DETAILS:
https://issues.apache.org/jira/browse/CB-1529
                
> PG 2.1: onDeviceReady() is not being called remotely, only locally 
> -------------------------------------------------------------------
>
>                 Key: CB-1525
>                 URL: https://issues.apache.org/jira/browse/CB-1525
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPad 2, iOS 6, PhoneGap 2.1, Xcode 4.5
>            Reporter: Julio Cezar
>            Assignee: Shazron Abdullah
>              Labels: onBodyLoad, onDeviceReady
>
> After upgrading to PhoneGap 2.1, my onDeviceReady() method is not being called anymore, on the server side. I have a HTML file locally, and locally the method onDeviceReady is being called without any problems. But after being redirected to a web page application, the onDeviceReady() method is not being called anymore. I did not have this kind of issue using PhoneGap 2.0. I have the same problem with the method onBodyLoad(): its being called without problems locally, but not on the server side, remotely.
> I have made a completely new (template) Project, using the console (PG "create" script), and added the www folder to my server. Locally (local index.html), the native App makes a redirection to the index.html in the remote www folder. I have realized, that the same problem always happen: the onDeviceLoad method is not being called. And that's the template project from phonegap. Locally it works ok, but not when its on the server. The allowed ExternalHosts has been set to '*' (all hosts allowed).

--
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-1525) PG 2.1: onDeviceReady() is not being called remotely, only locally

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

Andrew Grieve commented on CB-1525:
-----------------------------------

I hope to have a look at this tomorrow. Sorry for breaking this, and we can definitely get a quick fix to you :)
                
> PG 2.1: onDeviceReady() is not being called remotely, only locally 
> -------------------------------------------------------------------
>
>                 Key: CB-1525
>                 URL: https://issues.apache.org/jira/browse/CB-1525
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPad 2, iOS 6, PhoneGap 2.1, Xcode 4.5
>            Reporter: Julio Cezar
>            Assignee: Shazron Abdullah
>              Labels: onBodyLoad, onDeviceReady
>
> After upgrading to PhoneGap 2.1, my onDeviceReady() method is not being called anymore, on the server side. I have a HTML file locally, and locally the method onDeviceReady is being called without any problems. But after being redirected to a web page application, the onDeviceReady() method is not being called anymore. I did not have this kind of issue using PhoneGap 2.0. I have the same problem with the method onBodyLoad(): its being called without problems locally, but not on the server side, remotely.
> I have made a completely new (template) Project, using the console (PG "create" script), and added the www folder to my server. Locally (local index.html), the native App makes a redirection to the index.html in the remote www folder. I have realized, that the same problem always happen: the onDeviceLoad method is not being called. And that's the template project from phonegap. Locally it works ok, but not when its on the server. The allowed ExternalHosts has been set to '*' (all hosts allowed).

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