Johansrk
Johansrk

Reputation: 5250

how do I open a native app from a webpage

Is it posible to open a native IOS app from a webpage. In my case I want to open https://itunes.apple.com/dk/app/barcode-scanners/id504201315?mt=8

I have heard of URL schemes, that can trigger apps.

Any ideas ?

Thanks in advance

Upvotes: 2

Views: 301

Answers (1)

Johansrk
Johansrk

Reputation: 5250

Ok. So you can use URL schemes.

Here is a list of many apps. But it all comes down to the individual app, if they provide a URL scheme.

For me, I could do like this

<a class="btn btn-outline-primary" href="pic2shop://scan?callback=https3A%2F%2FMyUrl">Scan</a>

This enables me to start a barcode scanner app, scan a barcode, and get a callback with the extracted number.

Upvotes: 2

Related Questions