2

In my app which was Targeting to Android API 28, screen sharing via. Webrtc was working fine.

As per recent Google Guidelines(deadline for Target API 29 task is Nov 2, 2020), today I have changed the targetSdkVersion and compileSdkVersion to Android API 29 and in turn, screen sharing stopped working.

Any help or guidance will be well appreciated.

abhishek kumar gupta
  • 2,189
  • 6
  • 35
  • 56

1 Answers1

2

As suggested in Webrtc Group, I have added only below line of code in my Foreground Service in AndroidManifest.xml and it worked like a charm.

android:foregroundServiceType="mediaProjection"
abhishek kumar gupta
  • 2,189
  • 6
  • 35
  • 56