![](/img/trans.png)
[英]Push notification ios from Firebase is received but no sound or in notification center
[英]iOS push notification is received without sound
我在iphone / ipad上运行的mobilefirst平台7上有一个混合应用程序。
苹果设备收到推送通知后没有声音播放,但推送通知功能一切正常。
相同的代码适用于worklight 6.1的声音,但是似乎mobilefirst平台7(内部版本20150729)在推送到达时无法播放声音。
以下是我们使用的一些示例代码:
var notification = WL.Server.createDefaultNotification(notificationText, badgeDigit, { alerts : alertCount });
var delay = WL.Server.notifyDeviceSubscription(notifyUser, notification);
不知道是否有一些修订包可以解决此问题,或者我的代码错过了什么。
您是否尝试添加到有效载荷中:
sound: "default"
来源: https : //developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/TheNotificationPayload.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.