avioli / uni_links

Flutter plugin for accepting incoming links.
BSD 2-Clause "Simplified" License
563 stars 303 forks source link

Deeplink configuration in xCode #106

Open donkeyginc opened 3 years ago

donkeyginc commented 3 years ago

I am unable to get deeplink configuration working in iOS.

My app should work like this: In home screen there are few links to different webview. When mobile receives push notification, and user clicks the notification, the first link opens (in webview).

In Android this works perfectly, but in iOS, when clicking the push notification the app only opens but not the content (like in Android).

I have following configuration in Info.plist file: `

CFBundleURLTypes
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLName</key>
        <string>myappnamehere://webviewlinknamehere</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>myappnamehere</string>
        </array>
    </dict>
    <dict/>
</array>

` I think some configuration is missing in Xcode, but what..?

avioli commented 3 years ago

Push notifications are not what this package does.

It is for when an app is started by clicking on a link in a browser, message, email client or any other mechanism which opens a URL via the system APIs.

I hope this makes sense.

ritaamro commented 3 years ago

I was facing the same issue when tapping a Push notification resulted in cold-starting the iOS application, not sure this is what you're facing, but check my fix here #129