Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Motion, detect orientation change

$
0
0

@Kyrax80 wrote:

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.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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