diff options
author | Michael BrĂ¼ning <michael.bruning@qt.io> | 2023-07-27 13:19:00 +0200 |
---|---|---|
committer | Michael BrĂ¼ning <michael.bruning@qt.io> | 2023-08-11 15:18:28 +0200 |
commit | a63e5b1f0e4b65c5ce59e705129ab368677a94a8 (patch) | |
tree | 328453e89250cd3a129d33e6b75137fc88b06ae1 /examples | |
parent | df4121886dfa11cf90e74c72b1121a96462726bf (diff) |
Add NSCameraUsageDescription and NSMicrophoneUsageDescription to plists
Quick Nano Browser and Simple Browser need this to be able to use the
camera and microphone on macOS.
Also document the need for signing the applications in the examples
documentation.
Pick-to: 6.6
Task-number: QTBUG-114939
Change-Id: I7a260a7ec62138fec8f7b4d6c1f2009eee9004d6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Anu Aliyas <anu.aliyas@qt.io>
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'examples')
4 files changed, 23 insertions, 1 deletions
diff --git a/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist b/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist index 8aa89c9ea..cac4fa1f4 100644 --- a/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist +++ b/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist @@ -27,6 +27,10 @@ <key>NSSupportsAutomaticGraphicsSwitching</key> <true/> <key>NSLocationUsageDescription</key> - <string>Quick Nanobrowser would like to give web sites access to your location for demo purposes.</string> + <string>Quick Nano Browser would like to give web sites access to your location for demo purposes.</string> + <key>NSMicrophoneUsageDescription</key> + <string>Quick Nano Browser would like to give web sites access to your computer's microphone for demo purposes.</string> + <key>NSCameraUsageDescription</key> + <string>Quick Nano Browser would like to give web sites access to your computer's camera for demo purposes.</string> </dict> </plist> diff --git a/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc b/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc index 3222a69ee..8f72e67cd 100644 --- a/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc +++ b/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc @@ -168,6 +168,13 @@ \skipto function init(request) \printuntil } + \section1 Signing Requirement for macOS + + To allow web sites access to the location, camera, and microphone when running + \e {Quick Nano Browser} on macOS, the application needs to be signed. This is + done automatically when building, but you need to set up a valid signing identity + for the build environment. + \section1 Files and Attributions The example uses icons from the Tango Icon Library: diff --git a/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist b/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist index 76f747719..7abb7e01a 100644 --- a/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist +++ b/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist @@ -28,5 +28,9 @@ <true/> <key>NSLocationUsageDescription</key> <string>Simple Browser would like to give web sites access to your location for demo purposes.</string> + <key>NSMicrophoneUsageDescription</key> + <string>Simple Browser would like to give web sites access to your computer's microphone for demo purposes.</string> + <key>NSCameraUsageDescription</key> + <string>Simple Browser would like to give web sites access to your computer's camera for demo purposes.</string> </dict> </plist> diff --git a/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc b/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc index 128ba57e5..6fc807400 100644 --- a/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc +++ b/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc @@ -346,6 +346,13 @@ dialog accordingly. See \c webview.cpp and \c webauthdialog.cpp for an example of how these signals can be handled. + \section1 Signing Requirement for macOS + + To allow web sites access to the location, camera, and microphone when running + \e {Simple Browser} on macOS, the application needs to be signed. This is + done automatically when building, but you need to set up a valid signing identity + for the build environment. + \section1 Files and Attributions The example uses icons from the Tango Icon Library: |