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

    • 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 ...
    • Can I create my own email template?

      Yes, you can create your personalized email templates for the users. To create a template: Go to the content tab and click email content. Select add new email content. Choose from the three options which include rich text editor, code editor ( where ...
    • On-site

      D·engage enables you to create dynamic On-site Notifications, to control their appearance  visibility as per your needs. You can take advantage of build-in templates to have notifications up and running for all desktop and mobile users within ...
    • Mobile Push SDK Implementation

      Implementing D·engage's Mobile Push SDK enables you to engage your users by sending mobile push notifications and in-app messages.  Please check the following resources to implement D·engage's Mobile Push SDK: D·engage Android SDK Setup D·engage iOS ...