Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.
This repository was 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

Description

@woutslakhorst

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions