-
Notifications
You must be signed in to change notification settings - Fork 388
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
FOREGROUND_SERVICE_MEDIA_PROJECTION not found in io.agora.rtc2.extensions.MediaProjectionMgr$LocalScreenCaptureAssistantActivity on Android 14 #1733
Comments
I'm so sorry that we're in holiday until May 06, I will take a look this issue after holiday. |
I try our example and it works fine, can you check the configurations for reference? I think you can also try removing the <service
android:name="com.pravera.flutter_foreground_task.service.ForegroundService"
- android:foregroundServiceType="mediaPlayback|camera|microphone|mediaProjection"
+ android:foregroundServiceType="mediaPlayback|camera|microphone"
android:stopWithTask="true"/> |
I did the changes and get this error when starting screen share -
|
It seems that I've ran into a weird problem. So I added the I'm using this this plugin to enable foreground service in my app - https://pub.dev/packages/flutter_foreground_task, m not sure if this is the source of the issue. Also created an issue there - Dev-hwang/flutter_foreground_task#212 Another doubt I have -
Android 14 needs foreground service permissions to be explicitly specified, but in your example, I don't see any declared, isn't the |
The permissions are declared inside the SDK Agora-Flutter-SDK/android/build.gradle Line 62 in 0052cc7
I'm not very sure if it is affected by the |
I ran the example and it ran fine. Updated Agora plugin to version 6.3.1 I removed the This is the error I get when I start screen share on the first run.
The subsequent runs after the first run work fine. I also tried adding these permissions to my manifest to fix the first run issue but the problems remains
|
Is it possible to provide a mini reproducible demo for this issue which should be useful for us to investigate it? |
Fix for: AgoraIO-Extensions#1733 (Foreground Service bug)
Ignore this update. I'm doing some tests. Sorry about it |
@UnluckyY1 Comment how relevant is your link, please. |
@costaaaaaa Sorry, I made a mistake. I was supposed to post my comment on another issue. |
Steps to reproduce -
|
Guys, I made this changes to build and send to play console: Link to fork Basically I added I removed permissions because it I do not need this behavior at this moment. Hope this workaround help someone. |
@costaaaaaa Not sure if it works. I tried your forked branch on my demo project-
The issue persists. @littleGnAl Did you get the chance to look at my demo project? |
@bhavinb98 I'm so sorry that I just got back from vacation, I will investigate the demo in the next few days. |
@bhavinb98 I found that it's related to the I'm so sorry that I'm a little busy this week, it still needs more time for me to investigate this issue next week. For a workaround you can set the |
Okay, I finally found that it's a bug of our native SDK, it will be fixed on the next version, still, for a workaround you can set the |
Any timeline for the next version release? |
@bhavinb98 Probably in early July. |
The new version |
It's working. Thanks |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution. |
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. |
Version of the agora_rtc_engine
6.3.0
Platforms affected
Steps to reproduce
Flutter Version - 3.19.4
Android 14
These permissions have been specified in AndroidManifest
I get this error when starting screen share
Expected results
Screen share starts properly
Actual results
Get the above error
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: