<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - There's no URL Scheme to target Safari to handle URL if the user is on other browser"
   href="https://bugs.webkit.org/show_bug.cgi?id=152585">152585</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>There's no URL Scheme to target Safari to handle URL if the user is on other browser
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Platform
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>oi&#64;felquis.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi, first I'll tell my use case.. then what I'm doing trying to solve it.

## Use Case..

On iOS there's Chrome, Opera, Firefox and default Safari.. And there's a lot of in app browsers today, Facebook, Twitter, Tumblr.. Once a web site is open on in app browsers, they deal with http, https links inside the webview...

My problem is that Facebook Login doesn't support Chrome, so my client has no way to use my web application cause it depends on Facebook Login, Facebook tell the users to open my web site on Safari.. and on Safari it works just great.. In my web app I'd like to say the users this browser (chrome) cannot run my web app, to they need to open my web app on Safari.. Showing a button, touching this button the user will open my web site on Safari.. directly..

I could find how to open Chrome, Firefox and Opera on iOS, but I couldn't find a way to directly open Safari... People say http[s] links will be handled by Safari, but this isn't true.. If the user is already in a browser.. the URL will be handled by the current browser..

I wrote a documentation of my research that may be useful for debugging <a href="https://gist.github.com/felquis/a08ee196747f71689dcb">https://gist.github.com/felquis/a08ee196747f71689dcb</a>

## Solution

We just need a way to target Safari App to handle a URL, bello with encodeURIComponent('<a href="http://example.com">http://example.com</a>')
```html
&lt;a href=&quot;safari://http%3A%2F%2Fexample.com&quot;&gt;Try it on Safari&lt;/a&gt;
```

If it's an ordinary string, just search for the term in the default search engine
&lt;a href=&quot;safari://longboard%20fails&quot;&gt;Search on Safari&lt;/a&gt;

## Also

I read a lot people trying to figure out if a URL Scheme is available in the platform, there should be a way to check for it, cause it is a necessity in modern web application these days..

Thank you, I hope other developers also need it.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>