We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi final String result = await audioModule.checkMicrophonePermissions(); return no to me but I'm sure app has permission
The text was updated successfully, but these errors were encountered:
I used it, and worked for me:
import 'package:permission_handler/permission_handler.dart';
Future _initSettings() async { // final String result = await audioModule.checkMicrophonePermissions(); var status = await Permission.microphone.status; if (!status.isGranted) { await Permission.microphone.request().then((value) async { if (value.isGranted) { // await audioModule.setAudioSettings(); setState(() { canRecord = true; }); } else { // SystemNavigator.pop(); // kill the app if permission not granted } }); } else { // await audioModule.setAudioSettings(); setState(() { canRecord = true; }); } return; }
I hope, this will also help you.
Sorry, something went wrong.
No branches or pull requests
Hi
final String result = await audioModule.checkMicrophonePermissions();
return no to me
but I'm sure app has permission
The text was updated successfully, but these errors were encountered: