[英]Does Firebase cloud messaging push-notification have field "contentAvailable" for IOS?
Firebase Cloud Messaging config Firebase 云消息配置
Yes - the contentAvailable
or rather content_available
field is also available for iOS. You can just add the field to your server request amongst other fields like for example badge
.是的 -
contentAvailable
或更确切地说content_available
字段也可用于 iOS。您可以将该字段添加到您的服务器请求中,以及其他字段,例如badge
。
To give an example and a brief overview for possible fields in your APNS payload out of the Python FCM Admin SDK look below (the contentAvailable
field is also available in other SDKs):举一个例子,并简要概述 Python FCM Admin SDK 中 APNS 负载中的可能字段,请看下面(
contentAvailable
字段在其他 SDK 中也可用):
(Taken from official documentation here )
(取自此处的官方文档)
With the fields you can configure your badges and their behavior.使用这些字段,您可以配置徽章及其行为。
There are also for example Android specific parameters.还有例如 Android 特定参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.