Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8588519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:49:21+00:00 2026-06-11T22:49:21+00:00

I have an iPhone PhoneGap application. There is a HTML file located in a

  • 0

I have an iPhone PhoneGap application. There is a HTML file located in a remote server, and another html file in the project bundle (local).

After upgrading to PhoneGap 2.1, my onDeviceReady() (listening to “deviceready”) 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. Do someone have an idea why it might be so?

I have made a completelly new (template) PG Project, using the console, and added the www folder to my server. In the template project, I make a redirection to the index.html in the www remote folder, of the template phonegap project. 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. My allowed ExternalHosts has been set to ‘*’ (all hosts allowed).

I have found out, that other developers have the same problem: https://issues.apache.org/jira/browse/CB-1529

Do someone know how to solve this problem? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:49:22+00:00Added an answer on June 11, 2026 at 10:49 pm

    The PhoneGap Developer Team has answered to my Jira Ticket, and their solution has solved my problem. Here is what they wrote (https://issues.apache.org/jira/browse/CB-1525):

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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a PhoneGap/Cordova project for iPhone. I have 2 css files -
I am writing a iphone application using phonegap and ios. I have a weird
I want to have sample application on phoneGap for iphone. i had done some
Is there any AdMob plugin for phonegap as we have iAd for iphone...?
I have a PhoneGap based application, written in html upon the Sencha Touch platform,
I am developing an iPhone application using the PhoneGap Framework. Here I have to
I have a web application for iPhone, which will ultimately run within a PhoneGap
To implement as above in an PhoneGap iPhone application I have used nested list
I have implemented a Phonegap application for iPhone using jQuery mobile . I have
I have implemented a PhoneGap application for andriod and iPhone using jQuery Mobile and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.