how to start service of scan widget on programmatically
I'd like to invoke the start scan service automatically when my view is loaded. I try to use the code following :
$scope.init = function(){
$scope.app.fn.triggerWidgetService('scan-1','startscan');
};
angular.element(document).ready($scope.init);
but it's not working.
it's working when I use with show popup service or another service but only scan service is not working.
I'll be happy if someone can help me. Thank you.

