App won't launch from email link cause of missing colon

336 Views Asked by At

i have a problem to open my iOS app with a link. When I open the link it changes the url from:

http://myapp://my-url

to

http://myapp//my-url

The custom scheme does not work if there's no colon. The app is correctly setup cause when I manually type the colon back in it works like excepted.

Can someone give any advice how proceed here?

2

There are 2 best solutions below

0
Nik Yekimov On

In Info.plist you should have such code, no : is necessary when you specify url scheme

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>myapp</string>
        </array>
    </dict>
</array>
0
Ashutosh Gupta On

you may redirect the response. First generate the simple url when you click on that url .Redirect to your myapp://my-url(dont add http protocol now)