Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
850 stars 553 forks source link

[ios] after app reinstall, ios platform has no sound when playing [BUG]: #1044

Open LXG19961206 opened 2 weeks ago

LXG19961206 commented 2 weeks ago

I config flutter_sound as its example.

AudioSession config like this

await session.configure(AudioSessionConfiguration( avAudioSessionCategory: AVAudioSessionCategory.playAndRecord, avAudioSessionCategoryOptions: AVAudioSessionCategoryOptions.allowBluetooth | AVAudioSessionCategoryOptions.defaultToSpeaker, avAudioSessionMode: AVAudioSessionMode.spokenAudio, avAudioSessionRouteSharingPolicy: AVAudioSessionRouteSharingPolicy.defaultPolicy, avAudioSessionSetActiveOptions: AVAudioSessionSetActiveOptions.none, androidAudioAttributes: const AndroidAudioAttributes( contentType: AndroidAudioContentType.speech, flags: AndroidAudioFlags.none, usage: AndroidAudioUsage.voiceCommunication, ), androidAudioFocusGainType: AndroidAudioFocusGainType.gain, androidWillPauseWhenDucked: true, ));

When I first install the app on ios platform, worked normally. But when I reinstall the app with a new version (flutter_sound's version has no change) , playing feature has no error or warning, but get no sound.

LXG19961206 commented 2 weeks ago

And I enter setting - general - storage to remove the data of my app, and reinstall , the flutter_sound worked normally.

LXG19961206 commented 2 weeks ago

I checked my permission, has no change