Open artola opened 2 months ago
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
It would be awesome to support
deviceOrientationAndMotionGrantType
as it is done withmediaCapturePermissionGrantType
, otherwise every single time that you open/close the app the permit is required.See: https://developer.apple.com/documentation/webkit/wkuidelegate/3795606-webview
This was already reported in the issue "Motion sensor permissions are asked repetitively": https://github.com/react-native-webview/react-native-webview/issues/2942
That issue was closed including a PR with a "solution" that was not merged: https://github.com/react-native-webview/react-native-webview/pull/2944
I can confirm that a patch for
RNCWebViewImpl.m
with the PR code works and the if we pass "grant", the popup is not shown.I would like to know what was missing (there is some note of the author about using same prop
mediaCapturePermissionGrantType
) or something else?Should be revive that and push forward?
CC @ThorstenBux
Posible implementation: