Skip to main content

Add local notification displayable in the foreground (AddLocalNotificationAtFront) [MSDK only]

[MSD only] Adds a local notification displayable in the foreground.

Supported platforms

Supports iOS platform.

Function Definition

void AddLocalNotificationAtFront (GUALocalNotification localNotification);

Input Parameters

ParametersTypeDescription
localNotificationGUALocalNotificationReference data structure GUALocalNotification

Callback Handling

The callback processing interface is GUAPushBaseResultObserver.The callback data structure is GUABaseResult.

The callback event is PushBaseResultEvents. Callback ID is GUA_PUSH_ADD_LOCAL_NOTIFICATION.

Code Example

GUALocalNotification localNotification = new GUALocalNotification();
// TODO: Set localNotification
UnionAdapterAPI.GetPushService().AddLocalNotificationAtFront(GUALocalNotification localNotification);