Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
OuDale opened this issue Sep 24, 2020 · 1 comment
Open

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

OuDale opened this issue Sep 24, 2020 · 1 comment

Comments

@OuDale
Copy link

OuDale commented Sep 24, 2020

一定需要设置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."}}

@RuiboZhang1
Copy link
Contributor

我这边测试没问题,你这边看看还有没有出现这种情况

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants