Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kotran88 opened this issue Jan 7, 2023 · 1 comment
Open

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

kotran88 opened this issue Jan 7, 2023 · 1 comment

Comments

@kotran88
Copy link

kotran88 commented Jan 7, 2023

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
Copy link

sebafra commented Mar 26, 2024

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); }); })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants