【发布时间】:2018-12-07 17:00:19
【问题描述】:
我正在尝试使用 .NET 后端安装 方法注册应用程序。该方法已成功执行,但 Active Device Registered 未在 azure 门户上更新。
但是当我执行 GetAllRegistrationsAsync 方法时,它显示的是新安装的设备。有人可以帮忙吗?
后端安装方法(C#)
public async Task CreateOrUpdateInstallation(DeviceInstallation deviceInstallation)
{
Installation installation = new Installation();
installation.InstallationId = deviceInstallation.InstallationId;
installation.PushChannel = deviceInstallation.PushChannel;
installation.Platform = NotificationPlatform.Gcm;
await hub.CreateOrUpdateInstallationAsync(installation);
}
获取所有注册方法
var allRegistrations = await hub.GetAllRegistrationsAsync(0);
在 Azure 门户上注册的活动设备
【问题讨论】:
标签: azure azure-notificationhub