Rich Notifications

Rich Notifications

Rich Notifications are notification type which supports image, gif, video content. Dengage SDK supports varieties of contents and handles notification.

Supports:

  • Image
  • Video
  • Gif

To support Rich Notifications, application needs to create Notification Service Extension.

Referrer: Apple Doc

Referrer: Supported FIle Types

Setup

Adding Notification Service Extension

1.1 In Xcode Select File > New > Target

1.2 Select Notification Service Extension then press Next.


1.3 Enter the product name as DengageNotificationServiceExtension and press Finish.


1.4 Press Cancel on the Activate scheme prompt.


1.5 Open NotificationService.swift and replace the whole file contents with the below code.

    override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
        self.contentHandler = contentHandler
        bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
         
        if let bestAttemptContent = bestAttemptContent {
            
            // add this line of code
            Dengage.didReceiveNotificationExtentionRequest(receivedRequest: request, with: bestAttemptContent)
            contentHandler(bestAttemptContent)
        }
    }


    • Related Articles

    • Rich Text Editor

      This module facilitates easy copying and pasting of HTML to construct email content. It provides essential sections for content and folder configuration. Users can effortlessly customize sender details, subject lines, and pre-headers. Additionally, ...
    • Rich Text Editor

      The Rich Text Editor is designed for creating email content without the need for advanced technical skills. It provides a user-friendly interface where you can easily insert images and apply basic styling to your email content. Select a Type > Rich ...
    • Advanced Personalization in Push Notifications

      In the Title and Message fields, you will find the "Add Customization" button. This allows you to embed dynamic content directly into your push notifications using the customization selector. For even more powerful targeting, you can leverage the ...
    • May 21, 2020

      Improvements to Mobile Push Notifications & Automated Data Jobs We’re happy to announce the arrival of mobile “Rich(er) Push Notifications”, starting with a Carousel layout for both Android and iOS platforms. Carousel push notifications enable you to ...
    • What's New

      Here's What's New in dEngage RECENT RELEASES June 05, 2020 New Features Available with this Release: Importing and Using Data from Amazon Redshift and Google Big Query Sending Push Notifications to Huawei Devices Using Reply-To Address in Email We're ...