3

I want to open my app from safari. This is the custom scheme in the info.plist:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLName</key>
        <string>com.appvendor.rentalapp</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>open-rental</string>
        </array>
    </dict>
</array>

If I press a button in safari like this:

<a href="open-rental://custom-string">Open App</a>

I get an iOS Warning "Open in <app-name>". My question is can I prevent this warning popup?

最白目
  • 3,505
  • 6
  • 59
  • 114

1 Answers1

0

another item I think this can help u

setTimeout(function(){
    window.location = "weixin://";  //scheme
    setTimeout(function () {
        window.location = appstore url;
    }, 500);
}, 1);
Community
  • 1
  • 1
  • You explain more about your answer.[From review](http://stackoverflow.com/review/first-posts/10520279) – Alex Dec 11 '15 at 03:19