# How to use the new Device Orientation

**URL:** <https://forum.ionicframework.com/t/how-to-use-the-new-device-orientation/141634>\
**Category:** Ionic Native\
**Created:** [September 13, 2018, 11:41am UTC](https://forum.ionicframework.com/t/how-to-use-the-new-device-orientation/141634 "2018-09-13T11:41:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyrax80](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kyrax80](https://forum.ionicframework.com/u/Kyrax80)\
**Post date:** [September 13, 2018, 11:41am UTC](https://forum.ionicframework.com/t/how-to-use-the-new-device-orientation/141634/1 "2018-09-13T11:41:35Z")

</div>

In this the repo where the device orientation plugin is it says it’s deprecated and to use something else: [https://github.com/apache/cordova-plugin-device-orientation](https://github.com/apache/cordova-plugin-device-orientation)

And this is a tutorial from Apache about how to access the compass but I don’t seem to be able to get it working: [https://blog.phonegap.com/migrating-from-the-cordova-device-orientation-plugin-8442b869e6cc](https://blog.phonegap.com/migrating-from-the-cordova-device-orientation-plugin-8442b869e6cc)

Could someone give me a hand on implementing this in Ionic?

Thanks.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:17pm UTC](https://forum.ionicframework.com/t/how-to-use-the-new-device-orientation/141634/2 "2021-07-19T21:17:32Z")

</div>

Closed on July 19, 2021, 9:17pm UTC


