rich-notifications

Using Data in Rich Push notification on iOS with FCM

六月ゝ 毕业季﹏ 提交于 2019-12-30 10:01:59
问题 My question might be bad, but I can't find any answer anywhere, I'm lost... So I want to display a rich notification with a nice image in iOS 10+. For this I'm using FCM and an UNNotificationServiceExtension which, if I understood correctly, should get the Data payload, find the image URL and load it before modifying the UNNotificationContent. The issue I have is that I can't get a hold of this "data". What I'm sending to FCM is the following : { "to": "device_token", "content_available":

Using Data in Rich Push notification on iOS with FCM

此生再无相见时 提交于 2019-12-30 10:01:08
问题 My question might be bad, but I can't find any answer anywhere, I'm lost... So I want to display a rich notification with a nice image in iOS 10+. For this I'm using FCM and an UNNotificationServiceExtension which, if I understood correctly, should get the Data payload, find the image URL and load it before modifying the UNNotificationContent. The issue I have is that I can't get a hold of this "data". What I'm sending to FCM is the following : { "to": "device_token", "content_available":

Detect if Rich Notifications in Chrome are available

旧时模样 提交于 2019-12-22 04:47:14
问题 My Chrome extension makes heavy use of webkitNotifications. I want to switch to the new rich notifications (chrome.notifications) but those aren't available on all platforms yet and at the moment of writing only in the beta channel and up. If the rich notifications aren't available webkitNotifications should be used as fallback. Thus I'm looking for the best solution to implement this: if(richNotificationsAvailable()) chrome.notifications.create(...); else webkitNotifications

IOS Rich notification didReceiveNotificationRequest is not fired

╄→гoц情女王★ 提交于 2019-12-17 17:17:07
问题 I'm developing an iPhone application using objective-c. The basic push notification is working properly. Now I want to add rich notification in my app but I cannot get the didReceiveNotificationRequest fired in the NotificationService. Here is the notification payload I receive on Appdelegate: https://image.ibb.co/ndA2Qo/grab.png Here is the NotificationService.m file; #import "NotificationService.h" #import "Common.h" @interface NotificationService () @property (nonatomic, strong) void (

Cant get image iOS Rich Push notifications with Xcode, Swift3

此生再无相见时 提交于 2019-12-08 07:57:28
问题 I already posted a question following the link. I tried the code in the answers but still cant get message. i did customize answers code like this: Code: import UserNotifications import SDWebImage class NotificationService: UNNotificationServiceExtension { var contentHandler: ((UNNotificationContent) -> Void)? var bestAttemptContent: UNMutableNotificationContent? override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) ->

Detect if Rich Notifications in Chrome are available

梦想的初衷 提交于 2019-12-05 04:55:15
My Chrome extension makes heavy use of webkitNotifications. I want to switch to the new rich notifications (chrome.notifications) but those aren't available on all platforms yet and at the moment of writing only in the beta channel and up. If the rich notifications aren't available webkitNotifications should be used as fallback. Thus I'm looking for the best solution to implement this: if(richNotificationsAvailable()) chrome.notifications.create(...); else webkitNotifications.createNotification(...).show(); I tried checking chrome.notifications.create for undefined but it's even defined for

iOS Rich Push notifications with Xcode, Swift3 but cannot get image

牧云@^-^@ 提交于 2019-12-01 11:10:55
I am trying to create iOS Rich Push notifications with Xcode, Swift3. I already make sure about push notifications (subject, body) with curl command of php but I can't create Rich Push Notifications referred to in this document . I added Notification Service Extension like this: 「 File 」→「 New 」→「 Target... 」→「 Notification Service Extension 」 and also I added in 「'mutable_content': True」 curl command. Then run but not call 「class NotificationService: UNNotificationServiceExtension」 so can't view push notifications image. The following my code import UserNotifications class NotificationService

iOS Rich Push notifications with Xcode, Swift3 but cannot get image

我的未来我决定 提交于 2019-12-01 08:49:32
问题 I am trying to create iOS Rich Push notifications with Xcode, Swift3. I already make sure about push notifications (subject, body) with curl command of php but I can't create Rich Push Notifications referred to in this document. I added Notification Service Extension like this: 「 File 」→「 New 」→「 Target... 」→「 Notification Service Extension 」 and also I added in 「'mutable_content': True」 curl command. Then run but not call 「class NotificationService: UNNotificationServiceExtension」 so can't

How to implement rich notifications in ios 10 with Firebase

佐手、 提交于 2019-11-28 12:41:44
I have been looking for a solution for this since quite a while. But I am not able to find anything. I have implemented Push Notifications for iOS using FCM. But I don't know if FCM supports iOS 10 rich notifications. If it does, I didn't find code to implement it. Thanks in advance. EI Captain v2.0 I have the same question why rich notification not working.. and the problem is with FCM mutable-content payload .. it turns in to gcm.notification.mutable-content when payload receives and that's why there is a problem which is not resolved yet. For more information, you can check this issue from

IOS Rich notification didReceiveNotificationRequest is not fired

与世无争的帅哥 提交于 2019-11-28 02:27:02
I'm developing an iPhone application using objective-c. The basic push notification is working properly. Now I want to add rich notification in my app but I cannot get the didReceiveNotificationRequest fired in the NotificationService. Here is the notification payload I receive on Appdelegate: https://image.ibb.co/ndA2Qo/grab.png Here is the NotificationService.m file; #import "NotificationService.h" #import "Common.h" @interface NotificationService () @property (nonatomic, strong) void (^contentHandler)(UNNotificationContent *contentToDeliver); @property (nonatomic, strong)