Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Audio session activation failed when app is in background #102

Open
Frayo44 opened this issue Jul 20, 2023 · 2 comments
Open

[iOS] Audio session activation failed when app is in background #102

Frayo44 opened this issue Jul 20, 2023 · 2 comments

Comments

@Frayo44
Copy link

Frayo44 commented Jul 20, 2023

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(560557684, Session activation failed, null, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)

#2 AVAudioSession.setActive (package:audio_session/src/darwin.dart:150:8)

#3 AudioSession.setActive (package:audio_session/src/core.dart:237:14)

#4 AudioSessionLocal.setActive (package:bus_station_alarm_clock/utils/alarm/audio_session_local.dart:25:5)

#5 AlarmLocal.playAlarm (package:bus_station_alarm_clock/utils/alarm/alarm_local.dart:28:5)

@ChrisElliotUK
Copy link

Have you added the audio background mode to your iOS permissions?

@sbauly
Copy link

sbauly commented Jul 11, 2024

Hi @Frayo44, did you manage to find a fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants