我在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);
不确定是否存在修复此问题的修复包,或者我的代码遗漏了某些内容 .
1 回答
您是否尝试添加到您的有效负载:
资料来源:https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/TheNotificationPayload.html