Exemplo n.º 1
0
    // PRIVATE METHODS

    void ListReceivedNotifications(PlayerPersistantInfo ppi)
    {
        // On iOS currently if the app is running on foreground and the notification appears in
        // the notification area it's added to receivedNotifications. This means that we can't
        // find out that it was not delivered due to user tapping it.
        var receivedNotifications = MFNotificationService.ReceivedNotifications;

        foreach (var notification in receivedNotifications)
        {
            MFNotificationService.CancelNotification(notification.Id);
        }

        MFNotificationService.ClearReceivedNotifications();
        MFNativeUtils.AppIconBadgeNumber = 0;
    }
Exemplo n.º 2
0
 void CancelScheduledNotifications()
 {
     MFNotificationService.CancelAll();
 }
Exemplo n.º 3
0
 void SheduleNotification(NotifyId id, string text, DateTime date)
 {
     MFNotificationService.Notify((int)id, new MFNotification("SHADOWGUN: DEADZONE", text, "app_icon", "", 1), date);
 }