Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9234

WP8: navigator.compass.watchHeading() fails often, if frequency is too small

    XMLWordPrintableJSON

Details

    Description

      The WP8 implementation of getHeading() checks every 100 ms, if the sensor returned already data. Since watchHeading calls also getHeading, this can produce the error 4 (ErrorFailedToStart). This happens quite often with a frequency < 300 ms.

      Unfortunately, the default value for frequency is 100 ms.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Ritzlgrmft Markus Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: