Avoid browser detection for app launch
Is your feature request related to a problem? Please describe. If possible, we should avoid doing browser detection for these features:
- DeviceWillReloadPageOnReturnFromBankIdApp
- DeviceMightRequireUserInteractionToLaunchBankIdApp
Based on testing, we use them today to use different behaviour for launching / returning to the website. This work on most of our browsers, but browsers we haven't tested with / browsers that can't be detected (like Brave) might get the wrong flow.
Also, Safari on iPad Pro will identify as Safari on MacOS, and will therefore get wrong behavior.
Regarding DeviceWillReloadPageOnReturnFromBankIdApp: This only applies to Safari on iOS at the moment, but other browsers might have this behaviour if the tab is deallocated. And Safari on iOS might not have this behaviour if run side by side with BankID on an iPad...
It works in (probably) 99/100 times with the current solution, but if we could redesign it to avoid this detection it would make for a better solution.
What area is it related to BankID
Describe the solution you'd like
- Always continue to check status, and persist state info in local storage to handle both when tab reloads and when it don't.
- Always try to auto launch app, and show user interaction button after some time.