Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NotificationServices.PresentLocalNotificationNow

Switch to Manual
public static function PresentLocalNotificationNow(notification: iOS.LocalNotification): void;

Parameters

Description

Presents a local notification immediately.

	function Start()
	{
		var notif = new LocalNotification();
		notif.alertBody = "Hello!";
		NotificationServices.PresentLocalNotificationNow(notif);
	}

function Update() { if (NotificationServices.localNotificationCount > 0) { Debug.Log(NotificationServices.localNotifications[0].alertBody); NotificationServices.ClearLocalNotifications(); } }