apla / me.apla.cordova.app-preferences

App preferences plugin for cordova
Apache License 2.0
201 stars 209 forks source link

cordova.exec.bind [undefined] #27

Closed L2Gui closed 9 years ago

L2Gui commented 9 years ago

On an old android device, I have "TypeError: Resulst of expression 'cordova.exec.bind' [undefined] is not a function. at file:///android_[...]apppreferences.js:29

That error refers to: platform.nativeExec = cordova.exec.bind (cordova);

It prevents "deviceready" event to be fired...

apla commented 9 years ago

please specify what version you're using for: cordova cordova-android

L2Gui commented 9 years ago

I'm using:

Cordova 4.3.0, the problem occurs on android 2.2.1, 2.3.5, but does not on 2.3.7+

Maybe the properties wern't the same? Or maybe is that function called without waiting a particular event it should wait?

L2Gui commented 9 years ago

Well, Cordova 5.0 doesn't support api < 10, so I guess the issue isn't actually one ^^