Permissions for listening to device motion events is requested by calling DeviceMotionEvent.requestPermission()after the user interacted with the web app (ex. on the press of a button).
Dart's DeviceMotionEvent, imported from dart:html, does not implement requestPermission().
This issue is related to: dart2js
Dart SDK Version (through Flutter):
From iOS 13 onward, web-apps are required to request permissions for listening to device-motion events: https://stackoverflow.com/a/56764762/499113
Permissions for listening to device motion events is requested by calling
DeviceMotionEvent.requestPermission()
after the user interacted with the web app (ex. on the press of a button).Dart's DeviceMotionEvent, imported from dart:html, does not implement
requestPermission()
.