I’m testing Capacitor on a very simple vue.js project. LocalNotifications work fine but when I tried PushNotifications from @capacitor/push-notifications then on Android in logcat I see:
Uncaught (in promise) Error: “PushNotifications” plugin is not implemented on android
While having code that starts like this:
PushNotifications.requestPermissions().then(result => {
if (result.receive === 'granted') {
PushNotifications.register();
}
});
I’ve went through https://firebase.google.com/docs/cloud-messaging/android/client
to add google-services.json file as well as edited gradle files. I didn’t define a custom icon. npx cap sync android
does passes as well as building/launching the app in Android Studio on a real or emulated device. What could be the source of this?
"@capacitor/android": "^3.1.2",
"@capacitor/cli": "^3.1.2",
"@capacitor/core": "^3.1.2",
"@capacitor/ios": "^3.1.2",
"@capacitor/local-notifications": "^1.0.3",
"core-js": "^3.6.5",
"vue": "^3.0.0"