代码之家  ›  专栏  ›  技术社区  ›  Teja

安装.NET后端后,azure通知中心未反映在门户上

  •  0
  • Teja  · 技术社区  · 6 年前

    我正在尝试使用注册应用程序 .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门户上注册的活动设备

    Showing 0 on the Azure Portal

    1 回复  |  直到 6 年前
        1
  •  0
  •   Raghvender Kataria    6 年前

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