Пример #1
0
    // Local Notification

    public void OnEnableLocalNotification()
    {
        // Check if we have permission to schedule notification

        if (!_hasLocalNotificationPermission)
        {
            return;
        }

        // We have permission, enable a local notification
        // It will appear 5 seconds after the app is deactivated

        Enhance.EnableLocalNotification("Enhance", "Local Notification!", 5);
    }
Пример #2
0
 /**
  * Enable local notifications
  *
  * @param title notification title
  * @param message notification message
  * @param delay notification delay in seconds
  */
 public static void EnableLocalNotification(string title, string message, int delay)
 {
     Enhance.EnableLocalNotification(title, message, delay);
 }