-
Notifications
You must be signed in to change notification settings - Fork 383
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
Support background modes calling screen #28
Comments
Did you mean support remote call through Agora.io cloud service? |
@Matrixbirds hopefully having a feature in Agora.io to receive incoming call and launch a call screen when app is in background mode |
The native SDK still not support this functional. I m already submit this functional proposal to our teammate. If have any progress i will update here. |
Any plans on the integration for the background modes ? |
we do not support it in Flutter SDK, maybe you can fork our SDK and add it by yourself. |
Hi, I need this too if your SDK not support did you recommend any other plugin or tools that works with your SDK? |
Although we will not integrate Callkit (iOS) and ConnectionService (Android) in the SDK in the near future, if you just want the app to keep calling in the background, you can call |
Does anyone have a working project with some example code to confirm if this approach is working for Android ? |
@LichKing-2234 Where should I put |
For Android there is still an issue in the background. Microphone input is gone when a few minutes in the background. The suggested solution doesn't make a change. So there certainly is a bug. Running the service in a Foreground service would be a solution, but that isn't easy in flutter without changing the plugin itself. I think the solution should come from the agora plugin itself. Are there plans to solve this issue? |
@zubke you can use one of them from pub.dev, you just need to start a foreground service. |
How it is working. Can you explain. Did you use a plugin or just "select the Audio, Airplay, and Picture in Picture, and Voice over IP options on the IOS platform." works? |
@abdullah432 should use foreground service on Android, just select the |
Can you please explain the fix for android beyond "use foreground service"? I understand that is a plugin unrelated to Agora, but if you know how to do it and the rest of us do not, your developers rely on you to communicate clearly how to make this plugin work on all platforms as expected. |
This is how i implemented foreground_services. When my app is sent to background. It is not killed. I want to know where do i initialize the agora. Where i commented out?? Because i get an error. Initialize this while the other one is not killed. If u used foreground services succsfully please share this piece of code |
@LichKing-2234. I am still not clear with android part. Can you share any code snippet that helps with foreground services. I am not sure if @braysonjohn148 was able to achieve it with his snippet. |
@vedartm you can use the flutter plugin about |
Hey, guys do anybody has the proper solution with a repo for running agora or any other voice SDK in the background for android and ios. I checked the whole issue. but couldn't find a proper solution. I need it urgently for my app. Thank you. |
@elaishane Using |
FYI the foreground service package is not null safe. |
I have not tried it, but I found this other plugin for foreground services in Android that is null safety compatible: https://pub.dev/packages/flutter_background |
I'm not sure @LichKing-2234 knows how to implement the foreground service for android he's suggesting, because all everyone need is a simple code snippet, where should we put setParameters('{"che.audio.opensl":true}'); in our code. Pls help if you do. |
RtcEngine _engine = await RtcEngine.create( |
this is not helpful, pls use https://pub.dev/packages/foreground_service |
@LichKing-2234 I tried using foreground_service but I'm having black screen issue both on the local and remote sides |
@FatimaZahra-FCH Could you pls explain your issue? |
@LichKing-2234 During a call between 2 devices X and Y, when I turn off the screen of device X and after 1 minute I noticed that the camera view on device Y freezes. (I need to display camera feedback even if the remote device goes into sleep mode.) |
if you enable foreground_service, the audio or video capture will keep on background mode. |
@LichKing-2234 What do you mean by "enabling" foreground_service ? I'm using this plugin : (https://pub.dev/packages/foreground_service). I moved all the agora related code to the foreground service and I'm using sendToPort() to communicate data between my app and the foreground service and everything is working fine except the black screen issue. I don't have any problem with the audio / RTM / both users are successfully joining the channel .... the only problem is the black camera capture ! Can you please give me an example of how you made it work ? |
Did anyone find the solution? |
@LichKing-2234 , Still waiting for an answer ... |
It will not be painful to you sir to help out by providing a code snippet solving this issue on background sir |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue. |
Will Flutter Agora.io support CallKit (iOS) and ConnectionService (Android) in future?
The text was updated successfully, but these errors were encountered: