【问题标题】:Azure Notification Hub Not Reflecting on Portal after Installation with .net Backend使用 .net 后端安装后,Azure 通知中心未反映在门户上
【发布时间】: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


    【解决方案1】:

    通常,Azure 门户不会实时更新“已注册的活动设备”,而是最多需要 24 小时才能显示它们。您可以在 24 小时后尝试,如果正确注册,您将获得设备。

    【讨论】:

      猜你喜欢
      • 2016-03-12
      • 2015-09-19
      • 2018-04-01
      • 2014-07-27
      • 2017-03-05
      • 1970-01-01
      • 2018-10-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多