android - Cordova plugin signature issue -


i'm trying add signature box app using this cordova-plugin. added plugin , cordova shows me in plugins list after launching in shell command

cordova plugin ls

in html put this: javascript code same of te example in github guide in link above because did "cut , paste":

       var signature = cordova.require('nl.codeyellow.signature.signature');        signature.getsignature(      function (imgdata) {     /* "success" callback. */     if (!imgdata) return; // user clicked cancel, got no image data.      var canvas = document.getelementbyid('get-signature'),     ctx = canvas.getcontext('2d');     canvas.width = imgdata.width;     canvas.height = imgdata.height;     ctx.clearrect(0, 0, canvas.width, canvas.height);     ctx.putimagedata(imgdata, 0, 0); }, function (msg) {     /* "error" callback. */     alert('could not obtain signature due error: '+msg); }, /* final string optional , defaults similar string. */ 'please put signature down below'); 

for debuggin i'm using tablet via usb , tryed cordova run bro


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -