Video on IOS doesn't start when app is terminated

Hi,
when receiving a video call on our app, if the device doesn’t have permissions the call ends instantly.
it happens when the app doesn’t work on the background.
is there anything I can do to ask for the permissions before the call disconnects?

@Adi_Ostrovsky
in xcode - make sure to enable background fetch and background processing under ‘Signing and Capabilities’ tab
Apart from this, i didn’t need to make any changes in the code itself.