CleverTap / CTNotificationContent

A Notification Content Extension class to display custom content interfaces for iOS 10 push notifications
MIT License
14 stars 7 forks source link

Can provide more custom actions with different notifications? #3

Closed archerx3 closed 6 years ago

archerx3 commented 6 years ago

RT, Can you provide more custom actions with more different notification?

Need custom more actions for different notification, and different handle for different action.

Aditi3 commented 6 years ago

Hey @archerx3, Could you please reach out to the CleverTap support team at support@clevertap.com with your use-case and more details.

archerx3 commented 6 years ago

I mean in code, provide the API to custom actions for different notifications.

- (void)didReceiveNotificationResponse:(UNNotificationResponse *)response
                     completionHandler:(void (^)(UNNotificationContentExtensionResponseOption))completion {
    UNNotificationContentExtensionResponseOption actionResponseOption = [self.contentViewController handleAction:response.actionIdentifier];
    completion(actionResponseOption);
}
- (UNNotificationContentExtensionResponseOption)handleAction:(NSString *)action
{
   // If can open some API, to handle custom action
}