开发者

Continues sound/vibration alerts for local notification while iphone is closed, as it is done in clock app

开发者 https://www.devze.com 2023-02-23 04:57 出处:网络
I wish to know how to generate local notification alerts similar to apple\'s clock alarm (that comes with the iPhone) while my appli开发者_高级运维cation is the the background and/or the iPhone is clo

I wish to know how to generate local notification alerts similar to apple's clock alarm (that comes with the iPhone) while my appli开发者_高级运维cation 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号