- During a startup, a pop-up window saying: Error initializing Cordova: Class Device cannot be found
- Beep and Vibrate not working
- Geolocation not working - Code 3, Message: Timeout expiredThis is where I say, "hey this was working before!?" I'll have to look into this to get it working again.
- Has anyone developing a Playbook app with Phonegap. Is it doable?
- Since I am using Mac and has no vmware, is there other way to test it in simulation mode using like Ripple simulator?
- Last but not least, does someone know how to solve the Class Device error and is Geolocation going to work on Playbook.
Phonegap certainly evolves quickly and I noticed it just hitted 2.0 a few days ago. So I decided to give it a spin on my Blackberry Playbook.It is a fairly straight forward task to try the given sample app on a real device. I use OS-X and has no vmware so I just had to test it directly on my playbookHere's what I found so far (Phonegap 2.0/Blackberry WebWorks 2.2.0.5):- During a startup, a pop-up window saying: Error initializing Cordova: Class Device cannot be found- Beep and Vibrate not working- Geolocation not working - Code 3, Message: Timeout expiredA quick glaze and it seems other stuffs are working such as accelerometer, camera, file system.I have a few questions and hopefully someone can shred some lights:- Has anyone developing a Playbook app with Phonegap. Is it doable?- Since I am using Mac and has no vmware, is there other way to test it in simulation mode using like Ripple simulator?- Last but not least, does someone know how to solve the Class Device error and is Geolocation going to work on Playbook.Thanks in advance.
Hey Tim,I've been going crazy lately trying to get my phonegap build app to work on BlackBerries. I kept getting "Error initializing Cordova: Unable to parse JSON string" on BB OS6 and "Error initializing Cordova: Undefined" on BB OS7. Then I came across your phrase "The device error issue was introduced in 2.0 but I implemented a fix not too long ago (last week).". And that made me feel a bit more sane. I think it's great that you've already implemented a fix, however I'm using phonegap build. With build you're supposed to remove cordova.js from your resources. And the build process seems to add a version of cordova that still has the bug in it.
If I test it with Ripple emulator and a reference to cordova-2.2.0.js the application works as expected. So 2.20 seems to have that bug fixed. But 2.2.0 is not yet supported in build. Using 2.1.0 or2.0.0 doesn't seem to make a difference.
Can you check if the bug is still implemented in phongap build?