html5 - phonegap.js or cordova.js not working in appmobi XDK and app.lab -
html5 - phonegap.js or cordova.js not working in appmobi XDK and app.lab -
i'm beginner in phnegap. while searching easy testing tool phonegap found appmobi xdk desktop , app.lab mobile. looks easy work it. when tried run phonegap functions like:
function capturevideo() { // launch device video recording application, // allowing user capture 2 video clips navigator.device.capture.capturevideo(capturesuccess, captureerror, {limit: 2}); }
etc. throws , error "can't read property 'capture' of undefined". i'v set
<script src="phonegap.js"></script>
inside head tag no luck. when tried phonegap build in https://build.phonegap.com/apps. works fine.
i'm bit confused here. xdk , app.lab testing html5 apps or supports phonegap features notification, camera, capture etc.
thanks !
i ran in same issue times ago. depending on configuration device or capture undefined object. have add together device, capture , photographic camera plugins.
if using intel xdk can set them going project view -> plugin , permissions
see: https://github.com/apache/cordova-plugin-media-capture/blob/master/doc/index.md
html5 cordova mobile appmobi
Comments
Post a Comment