简体   繁体   中英

iOS 5 local notifications and lock screen

I have an app that has its own states. My aim is to fire local notification when state changes - while in back ground [so far I did] but problem is: can I keep these (or at least one of them) notifications on the lock screen all the time? So if you get notification you can slide through it into app every time you got lock screen?

I've got an idea to run NSTimer with - let's say one second interval, and fire local notification each time interval... but i guess some will say it's against 'long life' battery policy... as far as I know you cannot detect lock screen from inside the app

Anybody? thx

It's not only the battery problem but SPAM. With iOS5 you can view all the notifications in the menu dragged from the top of the device screen. If you will keep sending those notifications the menu will be filled with unnecessary notifications. Moreover users phone will constantly vibrate...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM