With Android, there is the notion of rotation vector sensor to get the full orientation of a device in space.
Is there an equivalent with iOS? I do not want to have the screen orientation, but the full orientation of the device.
On iOS CoreMotion, gives you access to all the device orientation sensors. Magnetometer and Gyroscope readings can combined manually or automatically to give you a running picture of the device orientation.