I am trying to redirect to an app after launching a browser window using UIApplication.shared.open.
My code looks like this:
let url = URL(string: "https://example.com/endpoint")!
UIApplication.shared.open(url, options: [:], completionHandler: { (success) in
})
I need to launch a browser window to generate a user fingerprint that will be the same fingerprint as the browser that the user got sent to the App Store with. However once the browser window opens and this fingerprint is generated, I no longer need the window.
Is there a way to really quickly open a window to generate this fingerprint and then close it back and hand control back to the app?
The fingerprint is being generated on the server end - all I need to do is make sure that the same browser that the user was sent to the App Store with is the same browser opened now. The default browser seems like a "good enough" situation for now.