Skip to content

[v3]在开发模式下无法获得录音等权限 #4270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
exment opened this issue May 9, 2025 · 2 comments
Open

[v3]在开发模式下无法获得录音等权限 #4270

exment opened this issue May 9, 2025 · 2 comments
Labels
Enhancement New feature or request Investigate Needs investigating

Comments

@exment
Copy link

exment commented May 9, 2025

Description

运行wails3 dev命令的时候不能弹出获取麦克风权限

To Reproduce

  1. 简单开发一个页面,获取浏览器录音权限,在浏览器上能正常运行
  2. wails3 dev 运行的时候 控制台显示 The operation was aborted
  3. 当直接运行 bin 目录下的二进制文件时 又能弹出申请录音权限

Expected behaviour

当运行 wails3 dev的时候 能正常弹出 请求录音等权限

Screenshots

No response

Attempted Fixes

No response

System Details

# System 

┌────────────────────────────────────────────────────────────────────────────┐
| Name          | MacOS                                                      |
| Version       | 13.6.4                                                     |
| ID            | 22G513                                                     |
| Branding      | Ventura                                                    |
| Platform      | darwin                                                     |
| Architecture  | amd64                                                      |
| Apple Silicon | unknown                                                    |
| CPU           | Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz                  |
| CPU           | Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz                  |
| GPU           |  cores, Metal Support: Metal 3                             |
|       Metal Support: Metal 3                                               |
| Memory        | 64 GB                                                      |
└────────────────────────────────────────────────────────────────────────────┘

# Build Environment 

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| Wails CLI      | v3.0.0-alpha.9                                                                                                                                             |
| Go Version     | go1.23.8                                                                                                                                                   |
| -buildmode     | exe                                                                                                                                                        |
| -compiler      | gc                                                                                                                                                         |
| CGO_CFLAGS     |                                                                                                                                                            |
| CGO_CPPFLAGS   |                                                                                                                                                            |
| CGO_CXXFLAGS   |                                                                                                                                                            |
| CGO_ENABLED    | 1                                                                                                                                                          |
| CGO_LDFLAGS    |                                                                                                                                                            |
| DefaultGODEBUG | asynctimerchan=1,gotypesalias=0,httpservecontentkeepheaders=1,tls3des=1,tlskyber=0,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1 |
| GOAMD64        | v1                                                                                                                                                         |
| GOARCH         | amd64                                                                                                                                                      |
| GOOS           | darwin                                                                                                                                                     |
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies 

┌───────────────────────────┐
| Xcode cli tools | 2397    |
| npm             | 10.2.4  |
| *NSIS           | v3.10   |
└─ * - Optional Dependency ─┘

Additional context

No response

@exment exment added the Bug Something isn't working label May 9, 2025
@exment
Copy link
Author

exment commented May 15, 2025

当使用浏览器麦克风获取语音数据的时候是有问题的,但是可以使用go来获取语音数据,就可以避免这个问题。

@exment
Copy link
Author

exment commented May 15, 2025

在使用tauri开发的时候,官方有demo实例。

@leaanthony leaanthony added Enhancement New feature or request Investigate Needs investigating and removed Bug Something isn't working labels May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Investigate Needs investigating
Projects
None yet
Development

No branches or pull requests

2 participants