richpush

Rich push notification not working with FCM in IOS

我与影子孤独终老i 提交于 2019-12-25 02:14:48
问题 I've added UNNotificationServiceExtension and UNNotificationContentExtension in my project for rich push notification. Please refer the code below which i've added for the same. Code: #import "NotificationService.h" @interface NotificationService () @property (nonatomic, strong) void (^contentHandler)(UNNotificationContent *contentToDeliver); @property (nonatomic, strong) UNMutableNotificationContent *bestAttemptContent; @end @implementation NotificationService { NSURLSession *session; } -

iOS notifications actions without opening the app

你离开我真会死。 提交于 2019-12-14 02:22:01
问题 Is there a way to intercept user's click on push notification or user's click on rich push notification action button, WITHOUT LAUNCHING THE APP? I have implemented all necessary settings to register for push notifications, to receive push notifications and to handle simple and rich push notifications, and user's click on some action button inside rich push notification. But, when user clicks on some action button, app launches, and I can handle it inside: @available(iOS 10.0, *) func

How to run app with UNNotificationServiceExtension on pre iOS 10?

末鹿安然 提交于 2019-12-11 08:12:53
问题 My app implements the new iOS 10 rich push NotificationService extension. Everything works as expected on iOS 10, but I also want to support pre iOS 10 devices - of course not rich push, but just regular push. When lowering the deployment target in Xcode to e.g. 8.0 or 9.0 and trying to run on an older simulator or device i get the following errors: Simulator: The operation couldn’t be completed. (LaunchServicesError error 0.) Device: This app contains an app extension that specifies an