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.
<rdar://problem/64674104>
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.
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?
I believe this has just been addressed as part of https://bugs.webkit.org/show_bug.cgi?id=223247