cordova-universal-links-plugin: https://github.com/nordnet/cordova-universal-links-plugin
//universalLinks
universalLinks.subscribe('registrazioneConfirm', function (eventData) {
console.log('Did launch application from the link: ' + eventData.url);
//console.log(JSON.stringify(eventData));
var res = eventData.path.split("/");
res.shift();
$rootScope.user_id = res[1];
$rootScope.hash = res[2];
$rootScope.$emit("CallAuthWelcomeController", {});
});
.controller('AuthWelcomeController', function(
$rootScope,
$scope,
$http,
$ionicHistory,
$ionicLoading,
$ionicPlatform,
$ionicPopup,
$location,
$timeout,
$cordovaGoogleAnalytics,
localStorageService,
API_END_POINT
) {
$rootScope.$on("CallAuthWelcomeController", function(){
//console.log("CallParentMethod");
if($rootScope.user_id) {
$scope.doConfirmRegistrazione($rootScope.user_id, $rootScope.hash);
$rootScope.user_id = false;
}
});
});
BARCODE
https://github.com/phonegap/phonegap-plugin-barcodescanner
ANALYTICS
$timeout(function(){
$cordovaGoogleAnalytics.startTrackerWithId('UA-51373396-47');
}, 3000);
CADORO vorrebbe utilizzare la fotocamera per scannerizzare QRcode.