Skip to content

推送普通消息返回 :time_to_live' value is invalid #174

@OuDale

Description

@OuDale

一定需要设置time_to_live 参数么? 这个不是可选的吗? 为什么我推送会报错
推送内容:

    "data": {
        "platform": [
            "ios"
        ],
        "audience": {
            "registration_id": [
                "191e35f7e0f716fa77e"
            ]
        },
        "notification": {
            "ios": {
                "alert": {
                    "title": "计划书销售线索",
                    "body": "an<U+E022>小小苏阅读了您分享的计划书,快去促成销售吧!"
                },
                "extras": {
                    "alert": "计划书销售线索\nan<U+E022>小小苏阅读\r\n了您分享的计划书,快去促成销售吧!",
                    "batch_id": "c9a9b7c4e35e4a41b76b2a39b5030c40",
                    "business_type": "1",
                    "limit": "1",
                    "source": "CH003",
                    "type": "3",
                    "url": "https://bxr.im/activity/html/m20190430WhoSeeMe/html/huoke.html?huokeIndex=2&xrk_limit=\r\n1&share_record_id=15794003"
                },
                "badge": "+1",
                "sound": ""
            }
        },
        "options": {
            "sendno": 1252223243,
            "apns_production": false
        }
    }

返回信息:
cn.jiguang.common.resp.APIRequestException: {"error":{"code":1003,"message":"'time_to_live' value is invalid."}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions