当 iPhone 关闭时,继续发出本地通知的声音/振动警报,就像在时钟应用程序中完成的那样
我想知道当我的应用程序是后台和/或 iPhone 关闭时,如何生成类似于苹果时钟闹钟(iPhone 附带)的本地通知警报。目前,我得到了一次振动和一次铃声播放。这还不够,必须循环运行直到得到用户响应。那么苹果是如何做到的呢?特恩克斯。
I wish to know how to generate local notification alerts similar to apple's clock alarm (that comes with the iPhone) while my application is the the background and/or the iPhone is closed. Currently I gets a single vibration and a single play of my ringtone. This is not sufficient and must run in loop till having user response. So how the did it in Apple? TNX.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
他们使用了像你我这样的普通开发人员无法访问的私有 API。你能得到的最好的结果就是一响一震,除非你不打算在 App Store 中分发。
They used private APIs that are not accessible to normal developers like you and I. The best you're going to get is that one ring and one vibration, unless you're not going for distribution in the App Store.