开发者

how to run get the notification based on x,y,z axis values?

开发者 https://www.devze.com 2023-03-14 04:07 出处:网络
I am developing开发者_运维百科 an application, in that I want to get the notification based on (x,y,z) axis values. But the main problem is how to get the (x,y,z) values when the application is in sle

I am developing开发者_运维百科 an application, in that I want to get the notification based on (x,y,z) axis values. But the main problem is how to get the (x,y,z) values when the application is in sleeping mode? So tell me how to get that values in the sleeping mode?

Please give me any suggestions.


First of, you will need to set the background mode to location, then you will only recieve major location changes. You can retrieve these location changes withe the standard location manager.

After you checked the x,y position, you have to set a UILocalNotification.

You will need to read this document: http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH5-SW11

0

精彩评论

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

关注公众号