I want to know if the documentation of the plugin push in the ngCordova website is the correct, or not.
The link are this:
I want to know if the documentation of the plugin push in the ngCordova website is the correct, or not.
The link are this:
If you avoid using the version number in the docs url, the ionic cloud docs give you the correct info.
Thank you, let me know if there is any tutorial to configure the notification , depending on what happens on the server, if it is to create, update, modify or delete.
Sorry, this code:
$ionicPush.register().then(function(t) {
return $ionicPush.saveToken(t);
}).then(function(t) {
console.log('Token saved:', t.token);
});
Put in the .run function, here:
.run(function($ionicPlatform, $ionicPush) {
$ionicPlatform.ready(function() {
if (window.cordova && window.cordova.plugins.Keyboard) {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
// Don't remove this line unless you know what you are doing. It stops the viewport
// from snapping when text inputs are focused. Ionic handles this internally for
// a much nicer keyboard experience.
cordova.plugins.Keyboard.disableScroll(true);
}
if (window.StatusBar) {
StatusBar.styleDefault();
}
$ionicPush.register().then(function(t) {
return $ionicPush.saveToken(t);
}).then(function(t) {
console.log('Token saved:', t.token);
});
});
})
hi, I’ve try the way from docs, but looks like it never fire up the ionicpush.register method. Any idea?
I start study and try angular 2, thinking in migrate to Ionic 2