Does Ionic View application have access to mobile device token

Does anyone have successful experience getting mobile device token from Ionic View Application. I know you can launch the app locally on your phone and get device token, but I’ve tried with Ionic View app and doesn’t seem to get the token.
My code is something like this in the maincontroller:
$ionicPlatform.ready(function(){
var iosConfig = {
“badge”: true,
“sound”: true,
“alert”: true,
};
$cordovaPush.register(iosConfig).then(function(deviceToken) {
console.log(deviceToken); // not working
});
});

Are you installing Push Plugin?

I have the same issue can you help me?