I've been struggling to set up push notifications in my Ionic3 app for the past couple of days, and no matter what I try, it doesn't seem to work due to the current versions I'm using.
Here are my current versions:
rxjs: 5.5.11
Angular: 5.2.11
Typescript: ~2.6.2
Firebase: 5.8.2
@angular/fire: ^5.1.1
angularfire2: ^5.1.1
Some methods I've attempted:
1) AngularFirestore-Firebase Native
Encountering an error 'Object(...) is not a function' due to my rxjs version being outdated. Updating rxjs to version 6 presented TypeScript errors as it required features from ts 2.8 which was unsupported by Ionic. Upgrading Ionic to version 4 would resolve this issue but I'd prefer not to invest time in that now.
2) ionic-push
Still facing the same 'Object(...) is not a function' error.
3) FCM
Weirdly, I can't add FCM to the providers in app.module.ts. TypeScript throws an error stating that FCM cannot be used as a provider.
Any suggestions on how to implement push notifications with my current package versions? Thanks in advance!