anokabb / chat_composer

11 stars 10 forks source link

voice recorder doesn't work in Android 13 #5

Open Alireza-kzt opened 1 year ago

Alireza-kzt commented 1 year ago

After upgrading the operating system to Android 13, the voice recorder has a problem.

I/flutter ( 5707): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): │ #0 FlutterSoundRecorder.stopRecorder (package:flutter_sound_lite/public/flutter_sound_recorder.dart:787:13) I/flutter ( 5707): │ #1 RecordAudioCubit.startRecord (package:impo_full/core/app/custom_packages/chat_composer/lib/cubit/recordaudio_cubit.dart:49:19) I/flutter ( 5707): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 5707): │ 🐛 FS:---> stopRecorder I/flutter ( 5707): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): │ #0 FlutterSoundRecorder._stopRecorder (package:flutter_sound_lite/public/flutter_sound_recorder.dart:797:13) I/flutter ( 5707): │ #1 FlutterSoundRecorder.stopRecorder. (package:flutter_sound_lite/public/flutter_sound_recorder.dart:790:17) I/flutter ( 5707): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 5707): │ 🐛 FS:---> _stopRecorder I/flutter ( 5707): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): │ #0 FlutterSoundRecorder._stop (package:flutter_sound_lite/public/flutter_sound_recorder.dart:755:13) I/flutter ( 5707): │ #1 FlutterSoundRecorder._stopRecorder (package:flutter_sound_lite/public/flutter_sound_recorder.dart:809:17) I/flutter ( 5707): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 5707): │ 🐛 FS:---> _stop I/flutter ( 5707): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): │ #0 FlutterSoundRecorder.stopRecorderCompleted (package:flutter_sound_lite/public/flutter_sound_recorder.dart:265:13) I/flutter ( 5707): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:80:22) I/flutter ( 5707): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 5707): │ 🐛 ---> stopRecorderCompleted: true I/flutter ( 5707): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): │ #0 FlutterSoundRecorder.stopRecorderCompleted (package:flutter_sound_lite/public/flutter_sound_recorder.dart:277:13) I/flutter ( 5707): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:80:22) I/flutter ( 5707): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 5707): │ 🐛 <---- stopRecorderCompleted: true I/flutter ( 5707): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): │ #0 FlutterSoundRecorder._stop (package:flutter_sound_lite/public/flutter_sound_recorder.dart:768:13) I/flutter ( 5707): │ #1 I/flutter ( 5707): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 5707): │ 🐛 FS:<--- _stop I/flutter ( 5707): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): │ #0 FlutterSoundRecorder._stopRecorder (package:flutter_sound_lite/public/flutter_sound_recorder.dart:840:13) I/flutter ( 5707): │ #1 I/flutter ( 5707): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 5707): │ 🐛 FS:<--- _stopRecorder : I/flutter ( 5707): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter ( 5707): │ #0 FlutterSoundRecorder.stopRecorder (package:flutter_sound_lite/public/flutter_sound_recorder.dart:792:13) I/flutter ( 5707): │ #1 I/flutter ( 5707): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter ( 5707): │ 🐛 FS:<--- stopRecorder I/flutter ( 5707): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/ViewRootImpl@c8b07afMainActivity: MSG_WINDOW_FOCUS_CHANGED 0 0 I/ViewRootImpl@c8b07afMainActivity: stopped(false) old = false [log] [chat_composer] 🔴 Denied permissions

A7MeDG0L0L commented 1 year ago

Change targetSdkVersion to 32