Click here to Skip to main content
15,868,128 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am new to phonegap,working on phonegap feature accelerometer.I am getting error "Uncaught TypeError: Cannot read property 'watchAcceleration' of undefined ".I am also add config.xml file.why i am getting this error and please give me solution for this problem.
Posted
Comments
vyas_pratik20 26-May-14 7:23am    
hi , are u testing it on device or on emulator ?
Madhuri Kavuru 26-May-14 7:26am    
in device,not emulator
Have you searched and implemented any solutions from Google?
Madhuri Kavuru 26-May-14 7:38am    
ya,i searched.but i am not getting proper solution.
vyas_pratik20 26-May-14 7:40am    
Please check is your android device support accelerometer or not, did you write on error function ? you can check accelerometer support by installing compass app. also check you have added cordova.js file in your html file

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900