jpush/jmessage-react-plugin

Jmessage发送自定义消息

Closed this issue · 0 comments

sendCustomMessage = () => {
        var message = this.getNormalMessage()
        message.customObject ={key: '订单消息 点击查看详情'}
        message.messageType = "custom"
        message.appKey = ""
        message.extras = { "extras": this.state.data }
 if(jmessage.type === 'custom') {
            auroraMsg.msgType = 'custom'
            auroraMsg.customObject = jmessage.customObject
            auroraMsg.extras = jmessage.extras
        }

大佬可以帮我看看吗 我这么写的 发送出去的消息变成了 asdf 但我想要的是customObject里的值呀。 @JoshLipan