iOS screen sharing

I have setup broadcast extension. My brodcast extension is successfully sending video sample to host app(taken reference of jitsi meet code for broadcast extension). Also I have logged received video sample in screenCapture.m file and I am getting video samples from broadcast extension.
The issue is: this captured stream is not getting available to getDisplayMedia method.
Is there any extra steps I need to follow in main project.I have already setup RTCAppGroupIdentifier, RTCScreenSharingExtension in my info.plist which is why communication is happening.But any other steps at app site?