0
現在、iOS10に新しいリッチ通知機能を実装しようとしています。これを行うには、APNSを介してmutable-content
フラグを送信できるようにする必要があります。以下は、カールに埋め込まれたデータプロパティです。解析プッシュ通知のiOS10「可変コンテンツ」フラグのサポート
curl -X POST \
-H "X-Parse-Application-Id: qwdfwrkwergjpowefjrgowerjhoiwjehojwerw" \
-H "X-Parse-Master-Key: asdfasdfasdfasdfasderhwerhretjadsfwrthw" \
-H "Content-Type: application/json" \
-d '{
"className":"_User",
"where":{
"user":{
"__type":"Pointer",
"className":"_User",
"objectId":"O7zXzrEc8z"
}
},
"data": {
"alert": " Testing push notications",
"product":"510958372",
"mutable-content": 1,
"content-available": 1,
"category":"product-share"
}
}' \
https://api.parse.com/1/push
私はcontent-available
フラグが渡されていることがわかりますが、mutable-content
ではありません。
trigger: <UNPushNotificationTrigger: 0x175a12930; contentAvailable: YES, mutableContent: NO>