I am making an app what sets off alarms randomly, but it must not go off when the user is travelling over 15mph, in order to not distract them while driving for example. I have considered DeviceMotion but I was wondering if there are better plugins out there for what I want to achieve. I am aware that I can use background geolocation also, but I do not know if thisis necessarily the best tool for the job.
My requirements for this feature are the following:
- Runs in background
- Be able to get the speed the user is travelling at, or provide a way that I can work this out e.g. co-ordinates.