Under IOS, the solution no longer reacts to movements.
My solution has worked and now is no longer working.
Also the \"hello world\" example with the source code
Unfortunately, Chrome (m74+) and Safari (iOS 12.2+) now ship with sensor access disabled by default. The user has to enable manually on settings:
chrome://flags/#enable-generic-sensor
in Chrome
Settings -> Safari -> Motion & Orientation Access
in Safari iOS
Content also must be served over https.
More info on: https://github.com/aframevr/aframe/issues/3976