我正在尝试使用注册应用程序
.NET后端安装
方法。方法已成功执行,但
活动设备已注册
没有在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门户上注册的活动设备