Accelerometer on iPhone (iOS 10) not working well, but working on Android device.

Hi there,

I’m kind a newbie here but I have a problem with accelerometer on iPhone device and I will really appreciate your support.

I have project where under accelerometer events (waving iPhone) animation change on two different pictures and switch them between.

On Android device everything is working fine, but on iPhone it’s not working - it’s like when I run iPhone app the pictures are already switched (and I didn’t “touch” the device to move accelerometer or sth). 

It’s strange that on simulator everything works (I simulate the accelerometer events using “Shake” event from Hardware section) but on iOS device there is problem like above.

Looking forward to hearing from you, thank’s in advance!

Patrick

Hi Patrick,

Welcome to Corona! Can you please attempt to run our Accelerometer sample project on your phone? The code is available on GitHub here:

https://github.com/coronalabs/samples-coronasdk/tree/master/Hardware/Accelerometer

Thanks,

Brent Sorrentino

Hi Patrick,

Welcome to Corona! Can you please attempt to run our Accelerometer sample project on your phone? The code is available on GitHub here:

https://github.com/coronalabs/samples-coronasdk/tree/master/Hardware/Accelerometer

Thanks,

Brent Sorrentino