0

I'am using Agora.io video call for my application, it is working fine both audio and video, but when I put the device in sleep mode, after some minutes the application probably goes to sleep mode and I'am disconnected from the call channel until I wake up my device again.

I searched the Agora.io documentation for any issue but without success.

Has anyone an idea?

Rob B
  • 1,249
  • 2
  • 7
  • 13

1 Answers1

2

SOLVED

I used a ForegroundService that set a Persistent Notification and I was able to ask the service to keep the Camera and Microphone active

<manifest>
...
<service ... android:foregroundServiceType="microphone|camera" />
</manifest>
Rob B
  • 1,249
  • 2
  • 7
  • 13
  • can you share some code snippet or something how you achieved this. we are not able to continue agora call in background even with foreground service. – Siddhesh May 10 '23 at 09:33