如何使用 Azure SDK 在通知上添加声音



>有谁知道如何在java上使用Azure的通知中心添加声音。

我所做的是:

添加了依赖项:

<dependency>
<groupId>com.windowsazure</groupId>
<artifactId>NotificationHubs</artifactId>
<version>0.0.5</version>
</dependency>

并按照文档说明发送通知:

INotificationHub hub = new NotificationHub("connectionString", "hubPath"); 
Notification n = Notification.createGcmNotification(message);
Set<String> tags = new HashSet<>();
tags.add(tag);
hub.sendNotification(n, tags);

我正在寻找如何添加声音,但我可以找到它。

我计划向iOS和Android客户端发送通知。

提前谢谢你。

有谁知道如何在 java 上使用 Azure 的通知中心添加声音。

不幸的是,它目前在 Azure 通知中心不受支持。我还发现了一个类似的MSDN线程。

可以向 Azure 团队提供反馈。

如果你仍然想这样做。我的解决方法是您可以参考APNS或GCM。另请注意游戏负载大小有限。

推荐人:

更改推送通知声音

最新更新