jackyxian / baidupushsdk Goto Github PK
View Code? Open in Web Editor NEW百度云推送3.0SDK和例子
百度云推送3.0SDK和例子
Hi,
I'm unable to send some special characters like '!' and ':' as a part of 'description' or 'custom_content'.
On trying to do so i get the below response:
{"request_id":3024158377,"error_code":30603,"error_msg":"Authentication Failed"}
I have tried url encode, html encode etc, before sending, but none of it seem to work. Is there a way to send special characters?
确认apkkey和secretkey都是正确的。
你好,IOS广播失败:
错误信息:
{"request_id":2371265626,"error_code":30602,"error_msg":"Request Params Not Valid, require parameter content-available in aps is null"}
代码:
Notice_IOS_SubMod sub = new Notice_IOS_SubMod();
sub.alert = "IOS Device Push All ";
Notice_IOS_Mod ios = new Notice_IOS_Mod();
ios.aps = sub;
string msg = JsonConvert.SerializeObject(ios);
Push_All_Mod psdm = new Push_All_Mod(apiKey, msg,devicetype:4, deploystatus:1);
Push_All pa = new Push_All(apiSecret, psdm);
string result = pa.PushMessage();
msg Json:
{"aps":{"alert":"IOS Device Push All ","sound":null,"badge":0,"content_available":0},"ios_custom":null}
追加通知是否显示在任务栏的参数
这里网络不好,没有办法pull request,代码贴这里把
class Notice_Android_Mod {
public LightappCtrlKeys lightapp_ctrl_keys { get; set; }
}
public class LightappCtrlKeys
{
public string display_in_notification_bar { get; set; }
public string enter_msg_center { get; set; }
}
程序里没有自定义参数的推送测试。
但实际调用过程中是失败的,HttpStatus是400。
Dictionary<string, string> customStr = new Dictionary<string, string> { { "type", "new" }, { "id", "126" } };
dam.custom_content = JsonConvert.SerializeObject(customStr);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.