Phonegap HTML app and various warnings freeze by browser

When testing the phonegap application, I get the following three warnings and the browser just freezes. Running the application from the server. Many times, these pop-up warnings appear before the launch of the Ripple plugin. How to remove them.

Warning 1:

gap:["Device","getDeviceInfo","Device818329805"] 

Warning 2:

 gap:["NetworkStatus","getConnectionInfo","NetworkStatus818329806"] 

Warning 3:

 gap:["App","show","App818329807"] 
+44
cordova
Jun 04 '13 at 14:35
source share
3 answers

These warnings are usually displayed if you have the wrong cordova.js file. There are different ones for each platform. Make sure, for example, that you have not copied the android into your ios assembly.

+25
Jun 04 '13 at 14:42
source share

If you are testing your application in your desktop browser, you can simply exclude this file. For Chrome:

 <script type="text/javascript"> if (!navigator.userAgent.toLowerCase().match('chrome')) { document.write("<script src='phonegap.js'><\/script>"); } </script> 

(This way, you need to remember to uncomment the script link for the build process.)

+29
Aug 21 '13 at 7:44
source share

You just need to comment this line on cordova.js:

return prompt(argsJson, 'gap:'+JSON.stringify([service, action, callbackId]));

which is on line 4184 when using Phonegap 2.9.0-0 (Android)

Uncomment before deploying to a manufacturing device

+8
Jul 30 '13 at 15:58
source share



All Articles