jjzjj

NotificationHubClient

全部标签

c# - Azure 通知中心。 GetRegistrationsByTagAsync(string tag, int top) 的第二个参数代表什么?

documentation在Azure推送通知中说明NotificationHubClient.GetRegistrationsByTagAsync(stringtag,inttop),如下所示,top(Int32):Thelocationwheretogettheregistrations.但我不知道top或location代表什么。Anexample我发现只使用100但没有理由使用它。 最佳答案 基本上这意味着最多获得top记录。因此,如果您有1000个带有标签“A”的注册,则NotificationHubClient.GetR

c# - 我正在尝试使用适用于 iOS 的消息模板

到目前为止,我想为推送通知创建模板,但我被困在这里,无法正常工作。publicstaticasyncvoidSendPushNotificationApns1(stringmsgTemplate){NotificationHubClienthub=NotificationHubClient.CreateClientFromConnectionString(ListenConnectionString,NotificationHubName);stringmsg="{\"aps\":{\"alert\":\"$(msgTemplate)\"}}";awaithub.SendAppleNa