Hi all,
How do i get the device sensor orientation to work in Ios? I read something about permissions. How can I implement this? Or does it only work if the game is in the app store?
To recreate :
Export ball orientation example game to iOS. And nothing happens.
Gruk
August 9, 2022, 7:33pm
2
Hi,
Orientation sensors should work on iOS.
Have you tried that same example with a liluo build?
However, the wiki says:
I’m not sure if this applies to your case.
https://wiki.gdevelop.io/gdevelop5/all-features/device-sensors#motion_sensor
On android everything runs good.
The example game on liluo (ios), does also not work.
What do you mean with “calculate the value from the orientation data”?
I use DeviceSensors::OrientationGamma() * 20
You will need permission on Ios to use these sensors. Is this already implemented in Gdevelop? And if not how to implement this code [Solved] Sensor support IOS13+ stopped working - How do I…? - GDevelop Forum ?
Gruk
August 10, 2022, 8:15pm
4
Well, if you use orientation gamma, you’re already using orientation data.
Good finding
Check with the people from that topic, I’ve never done that.