Open kotran88 opened 1 year ago
Ionic 4
import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic';
this.platform.ready().then(() => { if(this.platform.is('mobile')){ console.log('*** Init push notifications') FCM.onNotification().subscribe((notif) => { this.messageService.showAlert(notif.title, notif.body); }); })
I sent whole 3days to do fcm with target sdk 31. but with no luck. can anyone give me repo that I can refer to? (if it is basic example app, I would appreciate it very much. I can buy some coffee as a token of gratitude)