Azure 通知中心测试发送正在使用 Android(FCM)工作。但是在 Asp.net 核心注册工作,发送推送通知不工作

问题描述 投票:0回答:0

我有一个 .net core 6 项目,它使用 Azure 通知中心向客户端的移动设备(IOS 或 Android)发送通知。(遵循此 MS 文档:https://learn.microsoft.com/en-us/azure/notification -hubs/notification-hubs-aspnet-backend-windows-dotnet-wns-notification)。 注册句柄(令牌)工作正常。但没有将通知发送到客户端应用程序。

下面我已经交叉检查了

  1. 我已经验证了.net core 项目中的连接字符串和集线器名称。
  2. .net 项目的注册工作正常。
  3. 测试从 Azure 通知中心发送到 Android 应用程序正在运行。

尝试发送通知但未在客户端应用程序中收到。我期待客户端应用程序使用 Azure 通知中心接收来自 .net 核心项目的推送通知。

.net azure firebase-cloud-messaging asp.net-core-6.0 azure-notificationhub
© www.soinside.com 2019 - 2024. All rights reserved.