Haider
01/31/2025, 6:08 PMAtlas
01/31/2025, 6:08 PMVapi
01/31/2025, 6:12 PMAndroidManifest.xml
file to ensure that the microphone permission is included:
xml
<uses-permission android:name="android.permission.RECORD_AUDIO" />
2. Since you're working with a wearable, make sure that you have the necessary permissions set in the wearable_app
directory's manifest as well.
3. On devices running Android 6.0 (API level 23) and above, you need to request permissions at runtime. You can do this by checking for permissions and requesting them if they are not already granted:
dart
import 'package:permission_handler/permission_handler.dart';
Future<void> checkAndRequestMicrophonePermission() async {
var status = await Permission.microphone.status;
if (!status.isGranted) {
await Permission.microphone.request();
}
}
4. Call the checkAndRequestMicrophonePermission
function before you initialize Vapi in your Flutter app.
5. Ensure that you handle the case where the user denies the permission. You can provide feedback or instructions on how they can enable it from the settings.
If after following these steps the issue persists, it might be a device-specific problem or a bug in the Vapi package for that particular device. In that case, please reach out to the Vapi support team for further assistance.Vapi
01/31/2025, 6:12 PMTomC3Po
01/31/2025, 8:42 PMTomC3Po
01/31/2025, 11:19 PMShubham Bajaj
02/01/2025, 6:49 AMTomC3Po
02/01/2025, 7:28 PMShubham Bajaj
02/03/2025, 8:51 AMShubham Bajaj
02/03/2025, 8:51 AMTomC3Po
02/03/2025, 6:30 PM