7 Replies Latest reply on Mar 27, 2017 11:57 AM by timkimtimkim

    cordova-plugin-device-motion Accelerometer Frequency

    bayhalldigital

      I've been requested to capture the accelerometer at 50hz - 50 times a second (every 20ms).

       

      The docs for GitHub - apache/cordova-plugin-device-motion: Mirror of Apache Cordova Plugin device-motion mention there is an iOS quirk that limits it to 40ms and 1000ms (25hz to 1hz).

       

      I've read iOS native has limits between 10hz and 100hz.

       

      Is this cordova restriction due to the plugin, or due to the nature and limitations of the PGB framework? ie, is there any way we can ping at 50hz without getting duplicate data?

       

      Thanks.