Jmessage 后台API发送消息给用户无法自定义通知栏

zluckymn
2019-06-12 06:12 318 0

post 接口 /v1/messages
post body:
{"msg_type":"text","msg_body":{"text":"{ \"text\" : \"456\", \"title\" : \"123\", \"type\" : \"TEXT\", \"msgContent\" : \"2019-06-12 14:07:02\" }","extras":{"isFromServerAPI":"true"}},"version":1,"target_type":"single","target_id":"1c4cf09e45074485ac01c799f1572b33","from_type":"user","from_id":"6dd2b3761825457388ac9a41caba34aa","no_offline":false,"no_notification":false,"notification":"true","notification->title":"123","notification->alert":"456"}
请问下在后台使用API发送消息给客户的时候,如何进行自定义的通知栏
null
查看文档后加了这三个字段后提示:
只加"notification->title":"123","notification->alert":"456" 后能成功发送通知,但是自定义的内容不生效
加入 "notification":"true" 参数后提示
{"error":{"code":899003,"message":"parameter invalid!"}}

1个回答

热门排序
  • 正确写法应该是参考
    null

        "notification": {
            "title": "111",
            "alert": "Hello, JMessage!"  
        }