Wednesday, 7 October 2015

Mendapatkan unique device id - UUID

Kita dapat menggunakan ngCordova dan cordova Device plugin [1]

Install plugin :
cordova plugin add org.apache.cordova.device
Cara menggunakannya :

module.controller('MyCtrl', function($scope, $cordovaDevice) {
  var uuid = $cordovaDevice.getUUID();
});

Referensi

  1. $cordovaDevice, http://ngcordova.com/docs/plugins/device/

No comments:

Post a comment