Working on a windows 10 UAP and need Compass data. Has been working most the time, but every now and again Compass.GetDefault() returns null and it'll keeps doing it till I reset the device.
Thought it was my device at first, but it is randomly hitting the issue when submitting to the store and failing as a result.
Any suggestions would be great. Thanks
Andrew CooperPosted Apr 12, 2016, 12:55 AM
Suresh MPosted Apr 12, 2016, 12:30 AM
Hi null value will be returned if the specified sensor is not available in the system.
When a system is in Connected Standby mode or sleep mode ,the GetDefault method will return immediately with a null result.