Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Opening the Irma app on IOS from '_blank' removes the original webpage #13

Open
woutslakhorst opened this issue Sep 17, 2018 · 1 comment

Comments

@woutslakhorst
Copy link
Contributor

woutslakhorst commented Sep 17, 2018

Open a link on an iPhone to a new page targeted as '_blank', when you issue a Irma session from this page the js changes the window location to irma://. This makes IOS 'replace' the content of this _blank page with the Irma app. The _blank page is then gone and with it the page you logged into. If you open a link manually to the same page everything is fine.

The problem is at:

https://github.com/privacybydesign/irma_js/blob/6747669b2ed50e0d8ad8198b1914b458abfec2cf/client/irma.js#L590

A fix can be to change it to open a new window before any async call with window.open() and store the windowReference in a global var. Then in the callback set the location of the windowReference to the irma:// location.

@woutslakhorst
Copy link
Contributor Author

woutslakhorst commented Sep 19, 2018

Above solution doesn't work. I had to create a workaround for iPhone users by checking is a valid session is active for the previous page as well....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant