javascript - Phonegap 3 - Alert that if i click ok crashes broswer -
i can't come explanation this... when include
<script type="text/javascript" src="phonegap.js"></script> in phonegap app, have not modified, 2 pops appear on screen.
//the first popup gap:["pluginmanager","startup","pluginmanager224542697"] //the second gap:["app","show","app224542698"] i have cancel both popups , love understand reasoning.
the 2 lines in question on line 21117 & 21118 of phonegap.js
// tell native code page change has occurred. require('cordova/exec')(null, null, 'pluginmanager', 'startup', []); require('cordova/channel').onnativeready.fire(); this of course not break when in app, mean development next impossible.
for me issue occurring because phonegap.js falling prompt based mode when running outside of phonegap. believe mode intended phonegap below android 3.2, communication via alert prompts (which you're seeing).
i fixed problem setting following variable before loading phonegap.js:
window._cordovanative = true;
this tricks phonegap thinking you're running above phonegap 3.2 hence never enters prompt mode.
of course, if you're targeting devices below 3.2 doing break communication phonegap on devices...
Comments
Post a Comment