Hi guys,
I’m trying to use a scope function with in a controller as ‘ecb’ for the register-options like this in my AngularJS-Controller:
var myOptions = {
‘badge’: ‘true’,
‘sound’: ‘false’,
‘alert’: ‘false’,
‘ecb’: ‘scope.customFunction’
};
$cordovaPush.register(myOptions).then(…);
But it doesn’t work. How can I fix this?