In Samsung Watch 4 Vapi is not working
# support
h
I am using the Flutter Vapi package and it is working fine in the android wear os emulator but when I run it on Samsung watch 4 the Vapi is not working and on Vapi dashboard its showing No Microphone Permission. followings are the logs https://cdn.discordapp.com/attachments/1334948523816259604/1334948524017848441/message.txt?ex=679e6332&is=679d11b2&hm=6204de987736aacbbe868a7fc281742d959ada1459e874665a769e65fb262210&
a
HeyHaider Thank you for creating the ticket! A member of our team will reach out to you shortly.
v
@Haider It seems like the issue you're encountering is related to microphone permissions on the Samsung Watch 4. To resolve this, you'll need to ensure that your app has the necessary permissions to access the microphone on the device. Here's what you can do: 1. Check your
AndroidManifest.xml
file to ensure that the microphone permission is included:
Copy code
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:
Copy code
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.
You can continue this conversation by mentioning me in the message.
t
@User can you check this
@User can you check this
s
@TomC3Po @Haider I will investigate this matter further and consult with the team regarding it.
t
@Shubham Bajaj any updates?
s
@TomC3Po @Haider It appears that the application is not receiving full access to the microphone on your Samsung Watch 4, despite your logs indicating “Mic Permission Granted.” The Vapi sdk/code continues to report “No Microphone Permission,” which subsequently results in a timeout when attempting to join the call. The timeout error arises after the Vapi code has been waiting for an audio stream that is not initiating due to the system not actually providing microphone access.
Once you confirm/fix that the permission is properly declared, requested, and granted within the device’s settings, this should ultimately lead to a successful integration.
t
we have done this still resulting in error
2 Views