jpush-api-nodejs-client
jpush-api-nodejs-client copied to clipboard
JPush's officially supported Node.js client library for accessing JPush APIs. 极光推送官方支持的 Node.js 版本服务器端 SDK。
你好,在document ,我看到api 支持 android priority? 可是IOS呢,请问下要如何增加interruption level 呢?
代码如下: ` .setNotification('标题', JPush.android(msg_json.msg, null, 1), JPush.ios(msg_json.msg) `
[lib/JPush/PushPayloadAsync.js#L396](https://github.com/jpush/jpush-api-nodejs-client/blob/7d36bbb6184e569f8f4ec2e3809ebbf47a422b5c/lib/JPush/PushPayloadAsync.js#L396) ``` function setOptions (...., third_part_channel) { if (third_party_channel != null) { // } } ```
JPushAsync.js的getReportStatusMessage函数中: `var json = { "msg_id": msgId > Number.MAX_SAFE_INTEGER ? String(msgId) : msgId, "registration_ids": registrationIds };` 但是现在很多msgId大于 Number.MAX_SAFE_INTEGER,发送的是字符串。服务端验证又通不过,返回错误: `{"error":{"code":3002,"message":"Invalid parameter `msg_id`."}}`
能帮忙维护的那种
- 需要在推送Android通知栏消息时在通知栏右侧显示自定义图片内容,官网 [ REST API文档中](http://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/)提到需要传递**large_icon**这个参数,但是服务端Sdk源码的android()函数中并没有对这个参数进行接收传递
能否支持 await的写法?
v4.2.0 使用JPush.js 的send(callback) 方式有问题,res不会携带statusCode, 所以一直会触发error,建议调整一下 Request2.js ```js resp.on('data', (res) => { if (res instanceof Buffer) { res = res.toString(); if (resp.headers['content-type'].indexOf('application/json') > -1) res = JSON.parse(res); } if (client.isDebug) debug(res);...