SOMotionDetector icon indicating copy to clipboard operation
SOMotionDetector copied to clipboard

Detection in background?

Open eggman87 opened this issue 8 years ago • 3 comments

I am using the library and am trying to detect activity in the background. It works great for a while but after around 30 minutes idle in the background - updates stop occurring....Is this expected behavior?

Should updates continue until stop tracking is called (even when in background)?

I have followed instructions around configuration for background updates (plist, property on shared instance, etc...).

Running on iPhone 5s with 9.3.

eggman87 avatar Mar 24 '16 18:03 eggman87

Hey @eggman87, did you ever sort this out. Seeing the same thing.

sanderpick avatar Apr 15 '16 15:04 sanderpick

Was not able to get it to work. I ended up using location manager directly to fit my needs. I was trying to use this library to only track location when the user is in a car moving....

eggman87 avatar Apr 15 '16 16:04 eggman87

It's because location updates are paused by the OS. I opened a PR which lets you listen for that event.

https://github.com/SocialObjects-Software/SOMotionDetector/pull/26

sanderpick avatar Apr 16 '16 05:04 sanderpick