PushSharp移动消息推送库
PushSharp 实现了服务器端向移动客户端推送消息的库,支持 iOS (iPhone/iPad APNS), Android (C2DM and GCM - Google Cloud Message), Windows Phone, 和 Windows 8 devices!
示例代码:
//Create our push services broker var push = new PushBroker(); //Registering the Apple Service and sending an iOS Notification var appleCert = File.ReadAllBytes("ApnsSandboxCert.p12")); push.RegisterAppleService(new ApplePushChannelSettings(appleCert, "pwd")); push.QueueNotification(new AppleNotification() .ForDeviceToken("DEVICE TOKEN HERE") .WithAlert("Hello World!") .WithBadge(7) .WithSound("sound.caf")); //Registering the GCM Service and sending an Android Notification push.RegisterGcmService(new GcmPushChannelSettings("theauthorizationtokenhere")); //Fluent construction of an Android GCM Notification //IMPORTANT: For Android you MUST use your own RegistrationId here that gets generated within your Android app itself! push.QueueNotification(new GcmNotification().ForDeviceRegistrationId("DEVICE REGISTRATION ID HERE") .WithJson("{\"alert\":\"Hello World!\",\"badge\":7,\"sound\":\"sound.caf\"}"));
评论
PushSharp移动消息推送库
PushSharp实现了服务器端向移动客户端推送消息的库,支持iOS(iPhone/iPadAPNS),Android(C2DMandGCM-GoogleCloudMessage),WindowsPh
PushSharp移动消息推送库
0
Pusher-jsJavaScript 消息推送库
Pusher-js 是 Pusher webservice 的 JavaScript 客户端,可利用
Pusher-jsJavaScript 消息推送库
0
Pusher-jsJavaScript 消息推送库
Pusher-js是Pusherwebservice的JavaScript客户端,可利用Pusher提供的服务实现消息的推送。该源码中包含:websocket-jssockjs-client示例代码:
Pusher-jsJavaScript 消息推送库
0
AeroGear UnifiedPush Server移动消息推送服务器端
UnifiedPush Server 是 AeroGear 的一个移动应用的消息推送服务器端开源项目
AeroGear UnifiedPush Server移动消息推送服务器端
0
AeroGear UnifiedPush Server移动消息推送服务器端
UnifiedPushServer是AeroGear的一个移动应用的消息推送服务器端开源项目。初始版本支持Apple’sAPNs,GoogleCloudMessaging和MozillaSimpleP
AeroGear UnifiedPush Server移动消息推送服务器端
0