I use this method in my app without getting a UIAlertView
. It just goes straight to the app.
I had a similar issue when I first started implementing it. I suspect that it's not a problem with myappname://
, but possibly a problem with how you added the URL Scheme.
Make sure to assign your custom value (myappname
) to the URL Identifier
object (com.mycompany.myappname
). The URL identifier
should be a String and the URL Schemes
should be an array with your custom value being a String.
The XML version of your .plist should look like this:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.mycompany.myappname</string>
<key>CFBundleURLSchemes</key>
<array>
<string>myappname</string>
</array>
</dict>
</array>