Local And Push Notifications

In this chapter, you will find the example how to manage local and push notifications for your game.

If you want to show simple notification banner / pop up, you can use this function:

UM_NotificationController.instance.ShowNotificationPoup("Hello", "Notification popup test");


Scheduling local notification is fairly simple, all you have to do is:

int NotificationId = UM_NotificationController.instance.ScheduleLocalNotification("Hello Locacl", "Local Notification Example", 5);


As you probably noticed this function is returning int notification id. You can use this id if you want to cancel particular local notification. Here is example:



And if you want to cancel all scheduled notifications:



For push notification, it’s a bit more complicated. Basically, plugin is only give you possibility to register the device for push notifications and get the device id. With you should send to your server for sending the push notifications in the future.

So here is example how you can retrieve the push device id:

UM_NotificationController.instance.OnPushIdLoaded += OnPushIdLoaded;

private void OnPushIdLoaded (UM_PushRegistrationResult res) {
       if(res.IsSucceeded) {
           new MobileNativeMessage("Succeeded", "Device Id: " + res.deviceId);
       } else {
           new MobileNativeMessage("Failed", "No device id");


The full guides with server code example can be founded here:

IOS Push Notifications Guide

Android Google Cloud Messaging Guide