How to Add Push Notifications to Your Unity Mobile Game - Firebase Cloud Messaging Tutorial

preview_player
Показать описание
In this tutorial video, I explain how to setup push notifications for your mobile Unity game. This setup will work for both iOS and Android devices. This will likely be the first of a series of tutorial videos as there is a whole lot to cover on this topic. For today, we will be setting up a basic Unity project that can be ran on a mobile device then configuring a Firebase project to send a notification to that device. Enjoy!

#FirebaseCloudMessaging #AndroidDevelopment #Tutorial

Please 'Like' this video and share it with anyone who is interested in video game development.

Subscribe to the channel to stay up to date with the latest developments on this project.

Links:
Firebase Documentation:

Download Firebase SDK for Unity:

Prerequisites for adding Firebase to Unity:

Blog:

My Game Development Studio's Website:

My GitHub:

My Setup:

As an Amazon Associate I earn from qualifying purchases.
Рекомендации по теме
Комментарии
Автор

If you can't get it to work on Android after following the video, the first thing that I would check is to make sure your "Build System" is set to "Gradle." This is done in the build settings and you can see it in my video at 13:34. Also be sure that "Google Play Services" are updated to the latest version on your phone.

TurboMakesGames
Автор

Brilliant tutorial. Thank you so much. I had everything but the test console section done and my head was wrecked I thought I was lost. You've made my day.

ianmcnamara
Автор

Very nice and straightforward tutorial. Managed to get it working just fine on 2021! A little sidenote for people who are new to mobile development, but make sure your whole package name in the player android settings are set to lowercase. My project at first was generating a token but no notifications and turns out it was because there was a single uppercase letter at the package name.

albertoneto
Автор

thank you very much, got it working pretty quickly by following this tutorial and the updated official firebase one.

BillehBawb
Автор

Thank you very much, great detailed tutorial it works for me!!!

sspgames-studio
Автор

Hello if you read this then please reply, I am Very Happy To See This Tutorial And it helped me a lot, I managed To Implement The Push Notifications in my unity game, But Now The Problem Is that The Notifications only gets received when the app is in background, I mean if I kill the app by like swiping away from recent apps then I don't receive the notifications, Notification only comes when I open the app and press the home button to put it in background. Please help me I want user to receive the notifications even if they kill the app, can you help me on that.

I want to send Notification with The KEY And Value using custom data from firebase like you did in the third video of this series to change scenes using Push notification or (FCM), But I want the user to receive the notification even if the app gets killed .

JJDSG
Автор

thanks for this video!, for the moment i tried in android

christianalejandroflores
Автор

hello, thank you very much for your tutorial! Everything works fine with me, but I still have a question for you. When I restart my phone, its cache is cleared and can no longer receive notifications from Firebase. It causes me to restart my application to be able to receive these messages again. Is there a way to keep this cache even after restarting the phone? Thank you and good day ;)

FUNLIVEE
Автор

Hi! I am receaving the token and the message ( i debugged it using log viewer) but my app is not showing the notification. (testing on android) What do you think can be the trouble?

diegovillalobos
Автор

This was such a good video. Thanks for making this!

wtfloser
Автор

whenever i need to work with fcm and unity
this is my goto playlist

noobofnoob
Автор

Hi, very good tutorial. So if I properly understood, using Firebase it is possible to send notifications whenever the developer wants to, while other notification system assets in Unity store provide notifications only on fixed situations or timing inside game progress. I have a question: how is it possible to create notifications with large images, rather than small icons?

stefanotkg
Автор

Great video. Worked for me when i created a fresh new project. But when i tried to import the package to an existing game project, then a lot of errors are coming. Especially from TMPro and UI. Please send a solution for this.

sreejithkakkat
Автор

Does anyone know how to change the icon of the notification ??? I really need this

thenightguy
Автор

Hi bro please you is it possible to receive notification although the game is closed?

wadelkane
Автор

Hi! Is there any chance that I can send everyuser a notification everyday at one hour? Thanks

manuelgurbanov
Автор

Hi can you please send me firebase messaging.unity package.because it's complete unity sdk is about 2.5gb it is so big I can't download it for some reason.please upload firebase messaging.unity package file it on Google drive so I can download it.please

alexabrushwood
Автор

When it says "After you add the initialization code, run your app to send verification to the Firebase console that you've successfully installed Firebase" on the iOS setup, does it mean you have to build the app? Or run it in the editor? What exactly do I have to do?

NanoDice
Автор

Can we shown notification on live app like whatsapp?

harshpatel
Автор

Is it possible to create in-app posts like for a social media and it will sync for everyone that uses the app?

codelotl
welcome to shbcf.ru