Search code examples
iosswiftfitbitios-universal-links

How to start iOS application from safari browser after fitbit login


After finishing the fitbit login, I want to go back to my application, but I get an alert:

Cannot open application

I added the url scheme to the info.plist.

this is info.plist details:

 <array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLName</key>
        <string>applinks:com.360medlink.Tavie</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fitbittavie://</string>
        </array>
    </dict>
</array>
and the redirect url in fitbit dev settings is fitbittavie://

What am I missing? Help is very appreciated.

enter image description here


Solution

  • The issue is that you defined the scheme in the Info.plist file with :// appended.

    The scheme should be specified by itself, without the ://.