I developed android mobile application using Android 2.2 and Phonegap 2.1.0 and i tested the application using Android 2.3.4 mobile, Application worked good.

In my application i am using child browser and push notification.

Later my colleague tested the application using Android 4.1.2 Mobile, he said "Geolocation not working", then he told me that after upgrading Phonegap to 2.2.0, problem solved.

so, i upgraded Phonegap from 2.1.0 to 2.2.0, but now i am getting error from child browser and push notification.

Error in child browser

Uncaught TypeError: Cannot call method 'addConstructor' of undefined at file:///android_asset/www/resources/js/ChildBrowser.js:102

102 line : gap.addConstructor(function () { .....

Error in push notification

Uncaught ReferenceError: cordova is not defined at file:///android_asset/www/resources/js/PushNotification.js:260

260 line : cordova.addConstructor(function () { ...
有帮助吗?

解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top