Getting device compass heading for iOS browser?

As I understand it, Apple does not have an API to allow a browser to get the device compass heading. We are trying to create a browser based wayfinding app, but unable to determine the true north, so all of our calibrations are inaccurate.

Does anyone have a browser based solution/workaround? or has anyone heard if there are plans from apple to allow browsers to get access to this type of device info in the near future?

We also tried to use gps coordinates to try and calculate north, but have not been able to get that to work either.

thanks in advance for any advice you may have.

Getting device compass heading for iOS browser?
 
 
Q