cordova-plugin-sensors
cordova-plugin-sensors copied to clipboard
While the app is in background, the sensors readings have a maximum frequency of 1 second.
Is there a way to increase the interval while the app is in background? I have set the interval to 50ms (using the accelerometer sensor) but when the app is in background (minimized), I get readings only every 1 s.
Is there a flag that is used to get the sensor data while the device is in the background or do you use some other plugin to make this application active on the background?
I am developing an application using ionic and was wondering if I could use this for background device motion sensing on Android.
Is there a way to get this plugin work on iOS?