Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.3.1f1
Issue ID
1015595
Regression
No
[iOS11+] Magnetometer updates only when device is in motion
Reproduction steps:
1. Open the attached '1015595_project'.
2. Build the 'MagneticDemo' scene to an iOS 11 device.
3. Move a magnet (or Google pixel C) around a device.
Actual behavior:
- Pole pointers do not update.
Reproduced with:
- 2017.1.3p2, 2017.2.2p1, 2017.3.2f1, 2018.1.0b12
- iPhone 7 iOS 11.0.2, iPad Pro 10.5" iOS 11.3.2, iPhone 6S iOS 12.1.2, iPad Pro 3rd gen 12.9" iOS 13.1.2
Not reproducible with:
- iPhone 6+ 8.0, iPadMini 3 iOS 10.3.2, Samsung SM G920F (Galaxy S6)
Note:
- Magnetometer updates when a phone is moved around a magnet.
- On iPod Touch 7th gen iOS 12.3.1 Magnetometer does not move at all no matter the situation
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (2020.1.X):
Described compass behavior is default and recommended by Apple for iOS apps. Compass's purpose is to point to the north as accurately as possible, not to the closest magnet or magnetic noise. iOS magnetometer data processing happens inside iOS, not in Unity, it gives most reliable compass readings, which is a desired functionality.
`Input.compass` should be treated as a source for accurate north heading. If raw magnetometer data is required best approach would be creating custom plug-in. Good starting point for building iOS plug-in can be found here: https://docs.unity3d.com/2020.2/Documentation/Manual/PluginsForIOS.html