You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
560 B
15 lines
560 B
using System;
|
|
using UserNotifications;
|
|
|
|
namespace Demo.iOS
|
|
{
|
|
public class UserNotificationCenterDelegate : UNUserNotificationCenterDelegate
|
|
{
|
|
public override void WillPresentNotification(UNUserNotificationCenter center, UNNotification notification, Action<UNNotificationPresentationOptions> completionHandler)
|
|
{
|
|
// Tell system to display the notification anyway or use
|
|
// `None` to say we have handled the display locally.
|
|
completionHandler(UNNotificationPresentationOptions.Alert);
|
|
}
|
|
}
|
|
} |