My PhoneGap app not working on ICS

I am working on an phonegap android app since last few months, after the launch of ICS i am shocked that phonegap functions are not supported on it. After some logs and alerts i have found that the code i am using to switch phonegap.js for iOS and Android is incorrect we need to replace it with simple call.

For ICS you need to use simple

<script src="phonegap.0.9.5.js">

instead of


            var head= document.getElementsByTagName('head')[0];
            var script= document.createElement('script');
            var userAgent = window.navigator.userAgent; // string determining what our user agent is   
            var platform = navigator.platform.toLowerCase();
            script.type= 'text/javascript';
                script.src = 'phonegap.0.9.5.js';
                script.src = 'phonegap.';


if your code still doesn't works then it may be because of WebSQL for such case use window.openDatabase if you are using openDatabase

Post a Comment