Wed, 30 Dec 2020 08:46:17 GMT
Join the conversation at slack.cordova.io
Wed, 30 Dec 2020 07:43:46 GMT
@harsh.agarwal says
hi i facing a issue in ionic 3 apps with ios 13 and 14. As from ios 13+ devices we have ask
DeviceOrientationEvent.requestPermission
while using thewindow.addEventListener("deviceorientation", this.handleOrientation, true);
Wed, 30 Dec 2020 07:45:04 GMT
@harsh.agarwal says
Now i am getting the native popup in ios (attached screeenshot).
Wed, 30 Dec 2020 07:51:47 GMT
@harsh.agarwal says
I need to change the “localhost” value in this popup. I found that the ionic https://github.com/ionic-team/cordova-plugin-ionic-webview|webview plugin will sort this issue. In order to change the localhost value we have to use this -
<preference name="Hostname" value="app" />
. after change this i am able to remove the localhost from the url but now thisDeviceOrientationEvent.requestPermission
starts giving errorCall to requestPermission() failed, reason: Browsing context is not secure.
. Please help me out here.