Thanks for the post and the code snippet. For the callback
processSampleBuffer, actually you only need the line:
[self.screenShareService processSampleBuffer:sampleBuffer withType:sampleBufferType];
The switch statement is not needed(But keeping it will not cause any issues).
I have just tested the screen sharing feature in our demo app with iPhone X(13.3.1) and iPad Pro 3rd-gen(13.3.1), I have tested the cases “share UI, share video, and share audio”. Everything is working fine.
The broadcast extension relies on the ReplayKit, which might not exist on some older devices(Per https://developer.apple.com/documentation/replaykit, the ReplayKit is available on iOS 9.0+). You could use this website to identify the iPad devices you are using: https://support.apple.com/en-us/HT201471, if the OS version on your devices are above iOS 9+ and still causing issues, please let us know the model number and iOS version so that we could further investigate this.
PS: found a list of devices that do not support ReplayKit:https://support.spryfox.com/hc/en-us/articles/219399537-What-are-the-requirements-for-using-ReplayKit-iOS-devices-only-