【发布时间】:2017-08-15 13:50:27
【问题描述】:
我在 asp.net web-forms 中创建了一个支持,成功为所有注册设备发送通知,但我厌倦了发送链接,例如我需要发送一个推送通知,包括一个链接当用户触摸通知重定向到移动浏览器并打开链接。
private static async void SendNotificationAsync()
{
NotificationHubClient hub = NotificationHubClient
.CreateClientFromConnectionString("<Here is my endpoint >", "<hub name>");
await hub.SendGcmNativeNotificationAsync("{ \"data\" : {\"message\":\"Hello Users \"}}");
}
【问题讨论】:
标签: firebase-cloud-messaging azure-notificationhub android-push-notification