Unity Tutorial / How to Install Firebase SDK and APP Messaging - Send Notifications **NEW*

Published: 01 January 1970
on channel: New popular games
1,149
14

In this video i will teach you how to insert Firebase SDK in your project.
Subscribe to channel, contact us on our page: www.sspgames.com
Buy Unity game source codes:
https://unitygamecodes.com/

Here is Notification Controller script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class FirebaseNotificationController : MonoBehaviour {

public Text deviceToken;

public void Start()
{
Firebase.Messaging.FirebaseMessaging.TokenReceived += OnTokenReceived;
Firebase.Messaging.FirebaseMessaging.MessageReceived += OnMessageReceived;
}

public void OnTokenReceived(object sender, Firebase.Messaging.TokenReceivedEventArgs token)
{
Debug.Log("Received Registration Token: " + token.Token);
deviceToken.text = token.Token;
}

public void OnMessageReceived(object sender, Firebase.Messaging.MessageReceivedEventArgs e)
{
Debug.Log("Received a new message from: " + e.Message.From);
}
}


Watch video Unity Tutorial / How to Install Firebase SDK and APP Messaging - Send Notifications **NEW* online without registration, duration hours minute second in high quality. This video was added by user New popular games 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,149 once and liked it 14 people.