I want to use push notification, but i got this issue ::
[console.warn: Native: tried calling Push.hasPermission, but the Push plugin is not installed.
console.warn: Install the Push plugin: ‘ionic cordova plugin add phonegap-plugin-push’
I installed :
1- ionic cordova plugin add phonegap-plugin-push
2- npm install --save @ionic-native/push
After that :
3- cordova platform add android@7.1.0
when i excute with ionic serve -c to simulate with devApp :
this.push.hasPermission()
.then((res: any) => {
if (res.isEnabled) {
console.log(‘We have permission to send push notifications’);
} else {
console.log(‘We do not have permission to send push notifications’);
}
});
i have this issue :
console.warn: Native: tried calling Push.hasPermission, but the Push plugin is not installed.
console.warn: Install the Push plugin: ‘ionic cordova plugin add phonegap-plugin-push’
@mahcen, look my other reply, you can not use ionic serve when your project is using native plugins. In your case, you need use ionic cordova run browser or ionic cordova run android, ok? Try this and tell us.