Saturday, March 26, 2016

QRCode : Cordova + PHP


1) http://phpqrcode.sourceforge.net
Ni rujukan utk generate image QRCOde mengggunakan PHP.


2) http://www.c-sharpcorner.com/UploadFile/75a48f/generate-a-qr-code-using-cordova/
Ni rujukan nak generate imej QRCode guna plugin cordova di mobile device.


3) http://www.sitepoint.com/scanning-qr-code-cordova/ 
Cara utk call scanner dan baca imej QRCode menggunakan plugin cordova di mobile device.



Tambah plugin :


cordova plugin add phonegap-plugin-barcodescanner
Javascript:
function scan()
{
    cordova.plugins.barcodeScanner.scan(
        function (result) {
            if(!result.cancelled)
            {
                if(result.format == "QR_CODE")
                {
                    alert (result.text);
                }
            }
        },
        function (error) {
            alert("Scanning failed: " + error);
        }
   );
}
Boleh  guna konsep ni utk authenticate/pairing macam web whatsapp atau lain-lain keperluan. :)





0 comments:

 | 

MyGear

MyBlogList I

MyBlogList II

MyBlogList III

MyFollowers

MyWishList

  • http://www.bloggerplugins.org
  • CPL/ND8 ---> DONE
  • Tokina 11-16mm ---> DONE
  • LEP4 ---> DONE!
  • ASBMX ---> IN PROGRESS
  • Bali
  • D700
  • Nikkor 70-200f2.8
  • C200

About This Blog

MyFacebookPhotos


  © Blogger template 'Photoblog' by Ourblogtemplates.com 2008

Back to TOP