Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230419

Motion, detect orientation change

$
0
0

Hello.

I have the following code using capacitor:

Motion.addListener('orientation', (e: MotionOrientationEventResult) => {
   console.log('Test')
})

However when I rotate my device it’s not writing “Test”, it doesn’t enter but it does enter the first time I call it.


Viewing all articles
Browse latest Browse all 230419


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>