My requirement in the application is that I have to determine the step counts from the application, and this should continue even in the application running in the background. I learned this; usually an apple does not allow accelerometer data in the background, but I assume that with Core Motion we can achieve it.
Here is my code:
- (void)applicationWillResignActive:(UIApplication *)application { if ([[UIDevice currentDevice] respondsToSelector:@selector(isMultitaskingSupported)]) {
Can someone help me where I'm wrong?
I already added in the plist file "Required background modes-> and in element 0 select" Application registers for location updates ".
i_Intiution
source share