Skip to content

友盟 消息推送基于2.3sdk封装, 使用C#语法开发的 .NET版 sdk封装,主要封装了android手机推送支持

License

Notifications You must be signed in to change notification settings

jasnature/NSTool.UMengPush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

如果觉得适合你,请给一颗星星哟,仅表我写代码的安慰(^_^)

NSTool.UMengPush

友盟推送基于2.3sdk封装, 使用C#语法开发的 .NET版 sdk封装,主要封装了android手机推送支持

注意:使用前请使用Nuget控制台恢复程序集引用。

//例子一,具体参考TEST

PostUMengJson postJson = new PostUMengJson();
postJson.type = "broadcast";
postJson.payload = new Payload();
postJson.payload.display_type = "notification";
postJson.payload.body = new ContentBody();
postJson.payload.body.ticker = "评论提醒";
postJson.payload.body.title = "您的评论有回复";
postJson.payload.body.text = "您的评论有回复咯。。。。。";
postJson.payload.body.after_open = "go_custom";
postJson.payload.body.custom = "comment-notify";

postJson.description = "评论提醒-UID:" + 123;

postJson.thirdparty_id = "COMMENT";

ReturnJsonClass resu = umPush.SendMessage(postJson);

//umPush.SendMessage(postJson, callBack);

Assert.AreEqual(resu.ret, "SUCCESS", true);

About

友盟 消息推送基于2.3sdk封装, 使用C#语法开发的 .NET版 sdk封装,主要封装了android手机推送支持

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages