Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

motionTypeChangedBlock does not fire when running in the background #19

Closed
SimplyKeshav opened this issue Jul 18, 2015 · 1 comment
Closed

Comments

@SimplyKeshav
Copy link

Hi,

First things first, THANK YOU ! for this great library. Now to the question..., I am initiating SOMotionDetector in my App Delegate (didFinishLaunchingWithOptions). But when my app goes into background state, I do not get alerts.

My App Delegate --> didFinishLaunchingWithOptions contains:

... ... ... ...
[SOMotionDetector sharedInstance].motionTypeChangedBlock = ^(SOMotionType motionType)
{
[myClass MotionTypeChanged: motionType];
};
... ... ... ...

Is it something the software doesn't support or am I doing it wrong ?

@arturdev
Copy link
Owner

Are you sure that you have enabled background location updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants