Here is the ng-Cordova document, which is designed to get the current device token identifier.
copy and skip it in your project controller.
In the line below you can find the notification parameter
$rootScope.$on('$cordovaPush:notificationReceived', function(event, notification)
A notification is an object, and it will have a regid field that provides you with the current identifier of the mobile device that you can use, for example (sending to the server, viewing in console.log (notification);)
To send the device token to the server, you just need
var loginPost = { "UserName":"Mike", "PassWord":"xxxxxx", "DeviceID":notification.regid };
Using this entry, the variable loginPost to the server.
source share