简体   繁体   English

用户先前不允许之后如何再次请求访问麦克风?

[英]How to request microphone access again after user disallowed previously?

  1. I want to record. 我要记录。
  2. User disallowed. 用户被禁止。
  3. I want to record again. 我想再次记录。
  4. I call requestRecordPermission: 我称requestRecordPermission为:
  5. It simply returns granted=NO (without prompting for permission) 它只是返回Grant = NO(不提示许可)

Can I prompt the permission Alert to user somehow? 我可以以某种方式向用户提示权限警报吗? Or I should go with some custom message like "Grant access in Settings/Privacy"? 还是我应该附带一些自定义消息,例如“设置/隐私中的授予访问权限”?

There's no way to do this - it works in the same way as the prompt for location services. 无法执行此操作-它的工作方式与定位服务提示相同。 The only thing you can do is let the user know via an alert etc that your app requires the mic to work properly. 您唯一可以做的就是通过警报等方式让用户知道您的应用需要麦克风才能正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Ionic - 如何在用户拒绝一次后再次请求权限? - Ionic - How to request permission again after user rejected once? 用户拒绝定位服务后再次请求权限? - Request permissions again after user denies location services? 联系人和麦克风请求访问在 iOS 9 上不起作用 - Contacts and Microphone request access does not work on iOS 9 如何在iOS中再次续订对Twitter帐户的请求访问权限? - How to renew request access to Twitter account again in iOS? 如何永久访问IOS ID用户中的麦克风以拒绝AIR应用程序中的允许? - How permanently access the microphone in IOS id user deny the allowing in AIR application? 如何在 iOS App 中检查 FACEID 是否已被用户禁用? - How to check whether the FACEID has been disallowed by the user in iOS App? 如何检测用户在iOS上授予麦克风权限? - How to detect user giving microphone permission on iOS? 如果用户已授予麦克风访问权限,则无法在蓝牙上收听 iOS 应用程序 - Cannot listen to iOS app on Bluetooth if user has granted microphone access 请求后如何获取用户对象 - How to get User Object after Request 应用麦克风访问 - Application microphone Access
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM