Closed fayaman99 closed 1 year ago
@fayaman99 this issue may b your audio recoder permission issue. Please cross check.
I have already obtained all the authorization on my main.dart, I can make audio recordings before the phone rings, when the phone rings, it returns this error
//*** main.dart **//
Future
@fayaman99 Make sure this two permission added your mainfest file and also checked your app permissions.
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
I already have this in my AndroidManifest.xml but it doesn't work
Use like this.
Also clean your project and rebuild and run again.
I tried, but it doesn't work
Provide your Flutter sdk version and kotlin version.
Please check this. Error occur audio plugin. Check my plugin separate project without audio plugin.
Also provide your app permission settings screen?
https://meet.google.com/ksv-zztn-ibt please join this link if possiable
Try to Create new project and run.
test() async { try { await audioRecorder.hasPermission(); } catch (e) { print(e); } }
Future phoneStateBackgroundCallbackHandler(
PhoneStateBackgroundEvent event,
String number,
int duration,
) async {
switch (event) {
case PhoneStateBackgroundEvent.incomingstart:
test();
print("telephone sonne appel entrant");
break;
case PhoneStateBackgroundEvent.incomingmissed:
//
break;
case PhoneStateBackgroundEvent.incomingreceived:
//
break;
case PhoneStateBackgroundEvent.incomingend:
//
print("Appel terminé");
break;
case PhoneStateBackgroundEvent.outgoingstart:
//
break;
case PhoneStateBackgroundEvent.outgoingend:
//
break;
}
}
Future Lencement_appel() async {
test(bool); // return true
final permission = await PhoneStateBackground.checkPermission();
if (permission != true) return;
await PhoneStateBackground.initialize(phoneStateBackgroundCallbackHandler);
}
//***** error ** //
I/flutter ( 4489): MissingPluginException(No implementation found for method hasPermission on channel com.llfbandit.record/messages)