苹果推送通知声音
当收到推送通知时,是否有任何方法可以使声音持续播放,直到用户采取操作(例如按“确定”按钮)时,应用程序未处于活动状态?
我想发送一条推送消息并让警报声音继续播放,直到用户做出响应以模仿寻呼机的行为。
这可能吗?建议?
When a push notification is received, is there any way to make the sound play persistently until the user takes an action -- like pressing the OK button -- when the app is NOT active?
I'd like to send a push message and have the alert sound keep playing until the user responds to mimic the behavior of a pager.
Is this possible? Suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不可能。请参阅苹果文档 http://developer.apple.com/library/ ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html
not possible. See apple docs http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html
声音不会持续播放,只会“鸣响”一次。
The sound will not play persistantly, it will simply "chime" once.