Bug 213469
Summary: | WKWebView motion permission prompt doesn't show app name | ||
---|---|---|---|
Product: | WebKit | Reporter: | jcesarmobile <juliosincesar> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | cdumez, david.goelzhaeuser, dvpdiner2, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 13 |
jcesarmobile
If you have a Cordova app that uses WKWebView and devicemotion events, since iOS 13 it's required to request motion permissions with DeviceMotionEvent.requestPermission(), but the app name is not shown in the permission prompt text.
See sample app
https://github.com/jcesarmobile/cordova-requestPermission-issue
run
cordova prepare
open platforms/ios/HelloCordova.xcworkspace
and run from Xcode on any iOS 13 device
click "Access DeviceMotions" and the prompt shows "" Would Like to Access Motion and Orientation.
Instead of "" being empty, it should contain the app display name.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/64674104>
youenn fablet
The prompt is using the host which for custom schemes handler might be misleading or empty.
It might indeed be better to use the app name, at least if the host is empty.
We should be consistent with getUserMedia prompt.
David Gölzhäuser
I my opinion the getUserMedia prompt behavior is not correct either.
We have a Cordova based app using a WKWebView. When getting the userMedia the Application name is "localhost" instead of the Apps name. The Web part is running on a local webserver on the device itself.
Am I missing something?
Darryl Pogue
I believe this has just been addressed as part of https://bugs.webkit.org/show_bug.cgi?id=223247