Giter VIP home page Giter VIP logo

baidupushsdk's People

Contributors

jackyxian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

baidupushsdk's Issues

自定义参数推送失败

程序里没有自定义参数的推送测试。
但实际调用过程中是失败的,HttpStatus是400。

Dictionary<string, string> customStr = new Dictionary<string, string> { { "type", "new" }, { "id", "126" } };
dam.custom_content = JsonConvert.SerializeObject(customStr);

IOS 广播失败,

你好,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}

Unable to send special characters

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?

追加参数Notice_Android_Mod

追加通知是否显示在任务栏的参数
这里网络不好,没有办法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; }
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.