Redirect callbackURL not working in SFSafariViewController

Hi all!

We've implemented SFSafariViewController in our app, in order to use some 3-party features.
We open SFSafariVC with an initial URL, user does operations in SFSafariVC, URL on SFSafariVC changes a few time, until the last operation. After the last operation, 3-party calls our callbackURL in order to let us gaining again control of our app.
Specifically, this callbackURL is an API of our REST.
Our REST, after knowing that the whole process started from iOS (there is a specific channelID in the headers), redirects that URL to another URL, starting from example://
We've registered in our app a URL schema example, in order to have a Deep Link to our app.
The AppDelegate's method
application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool
is called, so that we can check that URL, close SFSafariViewController and let the user continue in the app.
Of course, our domain has a Trusted Certificate, so Apple can recognize us in these operations.

This process is working fine for the majority of use cases, but sometimes it fails. When it fails, the SFSafariViewController seems to have finished operations (refresh button appears on the right top corner instead of the cancel button), but it remains stucked.
If user taps on End button, SFSafariViewController closes itself, so we can check if all operations completed and let the user continue in our app.
If user taps on Refresh button, SFSafariViewController reopen a 3-party view, in which 3-party asks the users to go back to the app, with a button on their view that closes SFSafariVC.
We want the process working automatically, without user interaction, for a better usability.

We replicate the problem on iOS 14 and previouses (we support iOS 9.0).
What could have happened?
Is there any problem on the process?
Can be a problem of 3-party? Specifically, if 3-party succeeded to open the callbackURL, after the Refresh button has been clicked, would the page refreshed have to be something on our domain?

I don't know a way to debug on SFSafariViewController, so if someone knows, let us know.
Redirect callbackURL not working in SFSafariViewController
 
 
Q