I want to open the app with myapp://something?id=123 when an user with the app installed visits http://myapp.com/something?id=123 and if an user does not have an app then open url in browser.
Also, is Bundle URL Scheme can start with numeric?
My Current info.plist
file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>myapp</string>
</array>
<key>CFBundleURLName</key>
<string>com.organizationname.myapp</string>
</dict>
</array>
....
</dict>
</plist>
Edit:
Following is the my scenario.
I received an URL in email (e.g. http://techfuzionwithsam.wordpress.com). When I tap on that URL on my iPhone i want to open my application if installed otherwise open the browser