Ive just started a new project with Cordova 2.7.0. When I run it in a web browser and look at the console I see an error saying the file !exec_gap?
is not found.
I've done some searching and see that others have had this problem with cordova in the past. There answers are to change the line
execXhr.open('HEAD', "file:///!gap_exec", true);
to:
execXhr.open('HEAD', "/!gap_exec", true);
In the cordova.js file.
However, in 2.7.0 the line is already like this:
execXhr.open('HEAD', "/!gap_exec?" + (+new Date()), true);
Does anyone know how to fix this?
(ps: if it matters I am running JQuery Mobile and working on iOS)
Phonegap/Cordova framework is mobile development framework. It is used develop mobile application using HTML, CSS and JavaScript.
If there are any native app needed like Camera, Phone Book and etc., this framework will be used to get these to our html app. For this, the app will call gap_exec.
the app which is developed using phonegap can't be run in application. This kind of application is call Hybrid application. Hybrid application: Combination of both native application and web application.
If you want to run the application as native application as well as web application, please add some condition to avoid phonegap framework (if location.protocol is http or https).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With