Note that there are some explanatory texts on larger screens.

plurals
  1. POMac OS X launch application on custom url scheme
    text
    copied!<p>I'm trying to make my Mac OS X app to respond custom URL like myurl://foo.bar I've added necessary lines to my Info.plist but it doesn't work: when I click on custom URL in browser it doesn't launch my app.</p> <p>Below is my Info.plist file:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt; &lt;dict&gt; &lt;key&gt;CFBundleName&lt;/key&gt; &lt;string&gt;Remote Dialer&lt;/string&gt; &lt;key&gt;NSPrincipalClass&lt;/key&gt; &lt;string&gt;NSApplication&lt;/string&gt; &lt;key&gt;CFBundleIconFile&lt;/key&gt; &lt;string&gt;&lt;/string&gt; &lt;key&gt;CFBundlePackageType&lt;/key&gt; &lt;string&gt;APPL&lt;/string&gt; &lt;key&gt;CFBundleGetInfoString&lt;/key&gt; &lt;string&gt;Created by Qt/QMake&lt;/string&gt; &lt;key&gt;CFBundleSignature&lt;/key&gt; &lt;string&gt;????&lt;/string&gt; &lt;key&gt;CFBundleExecutable&lt;/key&gt; &lt;string&gt;RemoteDialer&lt;/string&gt; &lt;key&gt;CFBundleIdentifier&lt;/key&gt; &lt;string&gt;com.taxisoft.RemoteDialer&lt;/string&gt; &lt;key&gt;NOTE&lt;/key&gt; &lt;string&gt;This file was generated by Qt/QMake.&lt;/string&gt; &lt;key&gt;CFBundleURLTypes&lt;/key&gt; &lt;array&gt; &lt;dict&gt; &lt;key&gt;CFBundleURLName&lt;/key&gt; &lt;string&gt;Remote Dialer URL&lt;/string&gt; &lt;key&gt;CFBundleURLSchemes&lt;/key&gt; &lt;array&gt; &lt;string&gt;rdialer&lt;/string&gt; &lt;/array&gt; &lt;/dict&gt; &lt;/array&gt; &lt;/dict&gt; &lt;/plist&gt; </code></pre> <p>P.S. I've created my app using Qt Creator. I've also tried to create HelloWorld application with custom URL scheme in XCode and everything works fine.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload