Posts

Post not yet marked as solved
0 Replies
347 Views
I have a requierement like if local storage id and push payload id matches then only display the notification in notification bar or else drop the notification.In foreground i can drop using callback method willPresentNotification but am unable to find any solution when the app is in background or inactive. Please suggest me is it possible to drop notification, if yes please suggest the solution.
Posted
by NReddy.
Last updated
.
Post not yet marked as solved
0 Replies
483 Views
I have registered the UNNotificationAction's in appdelegate with the identifier, also i have added that identifier in info.plist in notification extension. Buttons are visible if i install the app, after killing the app buttons are not visible. Also i have cross checked with the category identifier. Its working fine in sample application but the behaviour is weird when i integrate it in the app.UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; UNNotificationAction *action = [UNNotificationAction actionWithIdentifier:@"next" title:actionTitle1 options:UNNotificationActionOptionNone]; UNNotificationAction *action2 = [UNNotificationAction actionWithIdentifier:@"goto" title:actionTitle2 options:UNNotificationActionOptionNone]; UNNotificationCategory *category = [UNNotificationCategory categoryWithIdentifier:@"category_identifier" actions:@[action,action2] intentIdentifiers:@[] options:UNNotificationCategoryOptionNone]; NSSet *categories = [NSSet setWithObject:category]; [center setNotificationCategories:categories];
Posted
by NReddy.
Last updated
.