I am creating an iOS app(Objective C and xcode 8.3). I have integrated push notifification with firebase. It is working fine. Now I need to show notification with an image(Rich Notification). I have created Notification Service Extension.I have created category identifier in app delegate and set it into the info.plist of Notification Service Extension. I have also enabled push notification for Notification Service Extension. I have added "mutable_content" in notification payload. The problem is that, when sending the notification controll is not triggering into the Notification Service Extension section.What will be the problem? did i miss anything?I wrote the following code block in DidFinishLaunchingWithOption.
UNNotificationCategory* generalCategory = [UNNotificationCategory
categoryWithIdentifier:@"GENERAL"
actions:@[]
intentIdentifiers:@[]
options:UNNotificationCategoryOptionCustomDismissAction];
// Register the notification categories.
UNUserNotificationCenter* center = [UNUserNotificationCenter currentNotificationCenter];
[center setNotificationCategories:[NSSet setWithObjects:generalCategory, nil]];
Include "mutable-content": 1 in your payload and send notification again.