I’ve been making an app that makes use of the camera using phonegap. When I test the app through my device via eclipse the app launches and everything works great on my phone.
Once I run the phoneGap build service and download and test the app, everything works great except clicking on capture photo or get from library doesn’t do anything. Any ideas why it would work before the build, but not after it?
code removed
Turns out the answer was simple. My variables for camera functions were called before the DOM loaded them.
So it never even registered the clicks. Weird part is that it worked when testing through eclipse.
I added all of my camera controls into the deviceready event and viola. It works as it should.