Camera doesn't works in phonegap
===

i am integrating camera in my phonegap application to record a video and to capture an image. i am using Phonegap 1.5.0 for iPhone.

to capture an imge i am using this code:

      function capturePhoto() { 

       navigator.camera.getPicture(onPhotoDataSuccess, fail, { quality: 30 }); 
       }
On button click i am calling above function but it did nothing.
can anybody help me in this?

Thanks.