Firebase Cloud Messaging for push notifications (both iOS and Android)

Thank you! Awesome and useful example, I was able to send a notification to both iOS and Android with FCM and cordova-plugin-fcm.

@Mounir1badi and @Jorchg, I have the same issue, did you find a solution for it?

@Mounir1badi @Jorchg
I had to install with the Android SDK Manager under Extras this packages:

This resolves me the issue with the “Could not find com.google.firebase:firebease-core:x.x.x” error.

image

But after that I got this error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugGoogleServices'.
> No matching client found for package name 'com.ionicframework.webclientionic2433370'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

The solution is, you have to set config <widget id=" in config.xml to your “package_name” from google-service.json you configured in firebird configuration.

1 Like

Hello guys!
Any tutorials on ionic 1 to emplement FCM ?

7 Likes

Does it work even when the app is closed (not running)?

Naaaa im missed, it not works if app closed…

Opened some ISSUES on github. No solutions for this yet

facing same issue. anyone find any solution

Anyone please support me my app will be struggle in push. I m using ionic1 to developing. Please give me the FCM sample code for the push. My project is 90% completed Push only in pending.

Stuck on same Task. can’t find any solution

if you find any solution please let me know

@mugundhan follow this video clip and solve your issue Here is the link https://www.youtube.com/watch?v=zvrcmOCVKY8

do you implement this>??

i resolved it by updating my SDK Manager so Update both Google Play Services rev 30 and Google Repository rev 26. follow this link for more details
http:// stackoverflow.com/questions/40029942/firebase-cloud-messaging-with-ionic-app-not-working

@umer12 Yes that is exactly what i used

Thanks for the example. It works well with Android.
But i have probleme to send notification to IOS.
I use “cordova-plugin-fcm” not cocoaPods…

xcode warnings :

When i send a notification via firebase, IOS decive reveices nothing. I generated and imported “APN development and production certificat” in firebase IOS project.

Thanks.

hi @stewartmccoy I implemented the push notification with firebase. Check out

Just check out the README for some specific guide (i.e. using AngularFire2 with Ionic 3 and Angular4)

You can directly find it in firebase

I have used Browser notifications ZetPush https://zetpush.com/.

this link is dead… could you please explain, how you did?