Input Motion Events not working in UE 4.19

Hi…

I have a project in version 4.16 that use gravity and rotation rate as input for camera movement. When is packaged to an android device, works fine. I’ve just migrated the project to version 4.19, and when it is packaged to Android device, the input motion events (gravity, rotationrate, etc.) don’t work. I’ve tried with an empty project in 4.19 to get the input values and all values returned for input motion (gravity, acceleration, rotation rate, etc.) are always zero (0.0). I have even tried in my old pc with 4.13 version and works fine.

What I have to do to make input motion events work in UE 4.19?

Any help would be appreciated…
Thanks.

im having the same problem. did you find a solution yet?

Not yet… I reported this as a Bug to Epics. Their last answer (April 27th) was that they could not to reproduce the issue on the device they were testing (Android Shield Tablet). I told them that my Android device is a Motorola G8 with Android 7. After that I have’nt received news from them. This issue still’s after I installed the hotfix 4.19.2. I had to migrate my project back to 4.16 version.

Solution:

The Android device must have a magnetometer. If magnetometer is not present in the device, the input motion values are not calculated. To get input motion values in devices without a magnetometer in lastest versions of the engine, the GameActivity.java template must be modificated.
Refer to this issue: Unreal Engine Issues and Bug Tracker (UE-59537)