Skip to content

Commit

Permalink
Lint fixes part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pravin Prakash Kumar authored and Pravin Prakash Kumar committed Oct 10, 2023
1 parent 69612f9 commit b20b054
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class YourAppFirebaseMessagingService extends FirebaseMessagingService {

## Notification Channel

Notification channel was introduced in Android Oreo (API level 26). It allows you to group notifications and allows users to customize the notification preferences for each channel.
Notification channel was introduced in Android Oreo (API level 26). It allows you to group notifications and allows users to customize the notification preferences for each channel.

You must create at least one notification channel to display push notifications on devices running Android Oreo or higher. Follow the [android documentation](https://developer.android.com/develop/ui/views/notifications/channels) to create and manage notification channels. Once a notification channel is created, you can use the channel id while [designing the push notification](https://experienceleague.adobe.com/docs/journey-optimizer/using/push/design-push.html) in Adobe Journey Optimizer.

Expand All @@ -105,4 +105,5 @@ MobileCore.setSmallIconResourceId(R.drawable.ic_notification);
When no custom small icon is specified, the Messaging extension will automatically utilize the application's launcher icon as the default small icon.

## Notification Actions

Messaging extension will automatically handle any click behaviour that is configured while [designing the push notification in Adobe Journey Optimizer](https://experienceleague.adobe.com/docs/journey-optimizer/using/push/design-push.html) or Assurance.
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ Implement the callback in `handleNotificationResponse` API to read [PushTracking
NSLog(@"Successfully started push notification tracking");
}
}];
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ keywords:

This document details how to handle and display media notification on iOS device for notification generated from Adobe Journey Optimizer.


Follow Apple's documentation to [add a notification service app extension to your project](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications#2942063). Then use the service app extension to download images or other media attachments for the notification before displaying it on user's iOS device.


## Notification service extension implementation

Notifications from Adobe Journey Optimizer contain a media attachment URL in the `adb_media` key of the notification payload. Use the service extension to download the media attachment from the URL and attach it to the notification before displaying it on the user's device.

Here is an example implementation:


```swift
import UserNotifications

Expand Down Expand Up @@ -103,4 +100,4 @@ extension UNNotificationAttachment {
}

}
```
```

0 comments on commit b20b054

Please sign in to comment.