arturdev / somotiondetector Goto Github PK
View Code? Open in Web Editor NEWSimple library to detect motion type (walking, running, automotive) and count users steps. This library will make motion detection much more easily.
License: MIT License
Simple library to detect motion type (walking, running, automotive) and count users steps. This library will make motion detection much more easily.
License: MIT License
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 ?
Currently we cannot do background location updates with SOMotionDetector on iOS9
We have to expose a way to set the allowsBackgroundLocationUpdates
property of the SOLocationManager
's instance of CLLocationManager
to YES
or NO
.
Is it possible to implement it for Xamarin.IOS platform?
app crashes when applicationWillEnterForeground is called, stop and restart detection doesn't help
Can you help me?
if not, do you have a clue?
it would be a great feature
motionDetector.currentSpeed always 0
SOStepDetector.h not found when use pod install
Hi, Thank you so much for your hard work.
I am trying to detect change in Activity type while the app is in background. It works perfectly in foreground but doesn't work in background. I have enabled background location update mode.
Thank you for your help.
The speed is always 0 in iOS 12.
The library gives a false motion change event on load. While the phone is still it returns the last state it remembers from last run. This should probably be avoided.
Would you mind if i ask a question not relating to SOMotionDetector? Now i`m using M7 in ios to detect the status of device. I get a trouble that device sometimes detects wrong status. For example, when i shake my device the status turns into "in the car", while im not in the car. So can you show me how to decrease wrong detection. Thank you very much.
it's perfect ,but i expert it's location can use in ios8 foreground and background
At no point is there a call for requestWhenInUseAuthorization
or requestAlwaysAuthorization
for ios8 and ios9 support. I think this should either be asked upon startDetection
and/or should be exposed to the developer to call whenever they see fit so that they can ask for it at the right time in their UX.
Either way this issue makes it really weird to get Core Location updates because we either have to edit your Pod or ask for it manually on an unused Location Manager instance.
It would be a good idea to expose the confidence and startDate metadata properties of CMMotionActivity. https://developer.apple.com/library/prerelease/ios/documentation/CoreMotion/Reference/CMMotionActivity_class/index.html
Hello,
does it work CMMotionActivity when my iPhone in pocket?
didUpdateLocations is not getting called, any ideas as to why?
Many thanks.
There is a crash when application is brought from the background.
Points to unnamed function CoreMotion
Is it possible to detect the timeslot when the user was travelling?
I'm only interested in the start and end time of my travel. And this even if the app is not running, like the Moves-app is doing.
2
Please, create a pod for your project to install it with cocoapods.
Hi,
In the first installation the application is frozen by CoreMotion.
Include the new "Privacy - Motion Usage Description" key in my iOS app .plist???
Congratulations for the project.
Thank you very much.
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.
The use of a single delegate to receive callbacks doesn't really fit well with at singleton pattern. One option to remedy this is to change from a protocol for callbacks to notifications. Another option would be to remove the singleton part.
In your documentation you write
[SOLocationManager sharedInstance].allowsBackgroundLocationUpdates = YES;
But I can't find this in code? The background mode is especially important for me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.