Hi, guys, This is my first question and it has become a bit complicated.
What I'm trying to do is to run a very known Swedish application to verify bank signature.
This application is called bankid.

The specification is documented here:

What I'm trying to do is to make it start on a mobile device.
The problem with this is that the app has to start at a certain point in execution.

On the server, we use an API by a company called Billecta. After a certain function is called:
var created = bc.InitiateBankAccountRetreival(creditorPublicId,(Billecta.ViewModels.v1.BankAccountBankTypeView)idx, TextBox1.Text);
I want to start the bankid app. This should be done with a simple URL call:
But how this should be implemented I don't know yet. I have tried various things but so far it has not been working.

Let's say that if the bankid app is running the user is going to sign and the server will poll from Billecta with this code

BankAccountRequestView result = null;


                    result = bc.GetBankAccounts(Guid.Parse(created.PublicId));


                } while (result.Status == BankAccountStatusTypeView.Waiting);
Then depending on the result, we handle the execution that fit the response.

The bankid app is called like this:
<input type="submit" name="Button1" value="Skicka" onclick="openBankID();" id="Button1" />
Then I have a javascript in the head
function openBankID() {
    window.location.href = "bankid:///?redirect=null";
After the window.location.href the asp.net server code will run but bc.InitiateBankAccountRetreival() is called after and should be called before.
A friend of mine was trying the website but he couldn't see any bankid app launching at all.

I appreciate any help I can get with this issue.