Interface CustomNotificationSender


  • public interface CustomNotificationSender
    Allows scripts to send custom notifications.
    • Method Detail

      • appAndroidIconColor

        CustomNotificationSender appAndroidIconColor​(String color)
        If mobile app notification is enabled, sets the icon color for Android devices
      • appCustomUrl

        CustomNotificationSender appCustomUrl​(String customUrl)
        If mobile app notification is enabled, sets the custom schema URL for the application to load when the notification is clicked
      • appImageUrl

        CustomNotificationSender appImageUrl​(String imageUrl)
        If mobile app notification is enabled, sets the image URL displayed in the notification
      • appIosUseBadge

        CustomNotificationSender appIosUseBadge​(boolean useBadge)
        If mobile app notification is enabled, sets whether the badge should be updated in iOS devices
      • send

        void send()
        Sends the notification in the background
      • sendSync

        CustomNotificationResult sendSync()
        Sends the notification immediately, blocking the current thread until notification is sent through all requested mediums
      • smsEvenIfDisabled

        CustomNotificationSender smsEvenIfDisabled()
        When called, SMS notifications will be delivered even to mobile phones which are not enabled for SMS