andrehtissot / cordova-plugin-fcm-with-dependecy-updated

Google FCM Push Notifications Cordova Plugin
MIT License
210 stars 272 forks source link

can anyone give me example app for ionic3 working fcm? #300

Open kotran88 opened 1 year ago

kotran88 commented 1 year ago

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)

sebafra commented 2 months 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); }); })