question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support on windows phone

See original GitHub issue

Hi, I seam to get no calls to the start call back on my windows phone. This is odd because the device api works as it should without any normalisation on that phone. I am using the following code

var args = {
    frequency: 50,                   // ( How often the object sends the values - milliseconds )
    gravityNormalized:true,         // ( If the garvity related values to be normalized )
    orientationBase:GyroNorm.WORLD,      // ( Can be GyroNorm.GAME or GyroNorm.WORLD. gn.GAME returns orientation values with respect to the head direction of the device. gn.WORLD returns the orientation values with respect to the actual north direction of the world. )
    decimalCount:0,                 // ( How many digits after the decimal point will there be in the return values )
    logger:null,                    // ( Function to be called to log messages from gyronorm.js )
    screenAdjusted:true            // ( If set to true it will return screen adjusted values. )
}

  var gn = new GyroNorm();
    gn.init(args).then(function(){
        gn.start(function(data){
            document.querySelector('#heading').innerHTML = data.do.alpha
            document.querySelector('#beta').innerHTML = data.do.beta
            document.querySelector('#gamma').innerHTML = data.do.gamma

        });
    });

The same page works correctly on an android device and an iphone that I have tested it on

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dorukekercommented, Apr 5, 2016

@karneaud which other methods are you using?

0reactions
karneaudcommented, Apr 6, 2016

@dorukeker I have to admit. I had moved on from your framework and went with gyro.js But I think there was some errors concerning how you retrieved the values.

Again. I had opted to use another framework.

I note though that in Windows 8.1 you are unable to retrieve alpha beta or gamma values.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Mobile End of Support: FAQ
With the Windows 10 Mobile OS end of support, we recommend that customers move to a supported Android or iOS device. Microsoft's mission...
Read more >
Windows Phone 8.1 End of Support: FAQ
Yes. Your Windows Phone 8.1 device should continue to work after July 11, 2017, but there will be no updates after July 11,...
Read more >
Global Customer Service phone numbers - Microsoft Support
North America / Central America / Caribbean ; British Virgin Islands (British Virgin Island). N/A +1. 1 866 993 9306 305 418 9136...
Read more >
Windows 10 Mobile End of Support - Lifecycle - Microsoft Learn
Windows 10 Mobile, version 1709 (released October 2017) is the last release of Windows 10 Mobile and Microsoft will end support on December ......
Read more >
Support options for Nokia, Lumia, and feature phone devices
How to reach customer support for help with your Nokia, Lumia, and feature phone devices.devices.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found