Unity Push Notification - Easy Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hi everyone. In this video we will learn how to make push notification in Unity. Let's start. First, let's log into Firebase Console and create a new project. Give your project a name and then click continue. The project will take some time to build, please be patient. After the project is created, open the Project Settings section. And go to the bottom and create a unity app. Let's choose the application as android. And then give the package name and nickname of the application. And click register. In the second part, download the google.services json file. We will integrate this into our project. In the third part, we download Firebase unity sdk. We will import this into our project. We have completed this part. Unzip the skd we downloaded. Then import the Firebase Messaging file into your project. Next, let's drag the google services json file into our assets folder. Then, let's create a script and name it whatever you want. I call it push notification. In this script we will initialize the push notification. The codes are in the firebase document. I will add the codes to the comments or you can reach the document link in the description. Just copy and paste the codes. Then let's open the build settings section. And open player settings from here. The package name here has to be the same as the package name we created in firebase. And raise the minimum api level a little bit. Then build your project and install it on your device. After that, in Firebase Console, let's open the Cloud messaging tab. And click send your first message on this page. Give the title and text here as you like. In the second part, we have to choose the app we created. We don't need to change the scheduling part. Click next. These parts are a bit of detail. So you don't need to fill it. Then click Rewiew and Publish. We are ready to see this notification. At first, it may take 5 or 10 minutes for the message to arrive. So you must be patient. As you can see, notification has arrived. Now, let's send a picture notification. For this, we find a picture from the internet and copy the link. Then we create a new notification. We follow the same steps again and paste the image we copied into the notification image field. As you can see, the picture notification has arrived. That's it.
Info
Channel: Solo Game Dev
Views: 18,285
Rating: undefined out of 5
Keywords: unity, push notifications, push notification, notification, unity notification, unity push notification, push notification unity, push notification in unity, how to push notifications unity 3d, unity notification tutorial, unity notifications, unity 3d push notifications tutorial, unity3d, unity mobile notification, unity notification system, firebase push notification, push & email notification, unity push notifications, unity mobile notifications, unity push
Id: _Hur7OmrIfY
Channel Id: undefined
Length: 3min 28sec (208 seconds)
Published: Sun Sep 04 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.