Im having this problem, Can some one provide a solution for this.
I have an app with basic push notifications with firebase
I have installed the phonegap plugin, and native aswell.
But in my code im getting this error under senderId
[ts]
Type ‘{ android: { senderID: string; }; ios: { alert: “true”; badge: true; sound: “false”; }; windows: …’ is not assignable to type ‘PushOptions’.
Types of property ‘android’ are incompatible.
Type ‘{ senderID: string; }’ is not assignable to type ‘AndroidPushOptions’.
Object literal may only specify known properties, and ‘senderID’ does not exist in type ‘AndroidPushOptions’.
hello
I deleted the node_modules folder and changed @ionic-native/push dependency version to 4.1.0 in package.json and when i run ionic serve iget this erreur !
ionic serve
Error: Cannot find module '@angular/tsc-wrapped/src/tsc’
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (C:\favourite-web-technologies\node_modules@ionic\app -scripts\dist\aot\aot-compiler.js:7:13)
at Module._compile (module.js:569:30)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
irun npm i @angular/tsc-wrapped then the same error appear !
Type ‘{ android: { senderID: string; }; windows: {}; }’ is not assignable to type ‘PushOptions’. Types of property ‘android’ are incompatible. Type ‘{ senderID: string; }’ is not assignable to type ‘AndroidPushOptions’. Object literal may only specify known properties, and ‘senderID’ does not exist in type ‘AndroidPushOptions’.
someone worked, could I provide the code of app.componet.ts ?? I still can not solve it I have an errorr in: Error: Uncaught (in promise): TypeError: Can not read property ‘initPushNotification’ of undefined
TypeError: Can not read property ‘initPushNotification’ of undefined