Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 10 webview doesn't open the app scheme

Tags:

ios10

Is it iOS 10 bugs or change something in iOS 10 ?

Current code

window.location.replace("myappURL://app");

is working on iOS 9 in webview.

However, it cannot open anymore in iOS 10.

like image 522
saturngod Avatar asked Dec 08 '25 04:12

saturngod


1 Answers

LSApplicationQueriesSchemes is required in iOS10 for all app schemes that you want to open from webviews. This was not required in iOS9 or earlier but is in iOS10. Add it like this in your Info.plist:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>myappURL</string>
</array>
like image 89
Peep Avatar answered Dec 11 '25 12:12

Peep



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!