java - 如何使用 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 team。
如果你还想这样做。我的解决方法是您可以参考APNS或GCM。另请注意播放负载的大小限制。
参考:
推荐阅读
- serilog - 在 appsettings.json 中使用 Serilog,我在子记录器中的过滤器表达式不起作用
- kql - ARG 的 KQL - 检查数组的任何元素是否满足谓词
- c++ - C++:关于何时分配和释放内存的问题
- c# - 如何衡量点击之间的时间?
- sql - SQL同库关系
- javascript - 如何在角度日历事件上设置 onHover 事件?
- r - Lme 等效于 SPSS 的 MIXED 过程中的 REPEATED 子命令?
- javascript - Webpack 插件 API:在解析期间获取模块的源映射
- sql-server - Powershell 从 Excel 读取并插入 SQL 数据库
- lua - 如何改进我在 Fortnite 上构建和编辑的工作