-Location daemon updates every 30 seconds

This commit is contained in:
ZaidElkurdi 2015-03-16 01:44:43 -07:00
parent 920ed48c3f
commit 369df2f065
5 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>OnDemand</key>
<key>KeepAlive</key>
<false/>
<key>StandardErrorPath</key>
<string>/dev/null</string>

View File

@ -19,8 +19,8 @@ int main(int argc, char *argv[]) {
@autoreleasepool {
[manager startMonitoringLocation];
[NSTimer scheduledTimerWithTimeInterval:30 target:manager selector:@selector(startMonitoringLocation) userInfo:nil repeats:YES];
while([[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:2]]);
}
return 0;
}