Deep linking in Xamarin.iOS

Yongqing Huang 241 Reputation points
2022-03-03T17:41:19.537+00:00

Hi,

My Xamarin.Andriod XForm app uses the deep linking: It will launch when an URL in email is clicked.

Now I will develop the Xamarin.iOS version of this app.

Could you give me an example code for the deep linking in Xamarin.iOS?

Thanks in advance!

Developer technologies .NET Xamarin
0 comments No comments
{count} votes

Accepted answer
  1. Rob Caplan - MSFT 6,032 Reputation points Microsoft Employee Moderator
    2022-03-04T00:08:24.01+00:00

    Please see the Application Indexing and Deep Linking documentation and sample. Please create a thread with more specific questions if you still have trouble.

    The bulk of the Xamarin code will be the same between Android and iOS, other than platform specific setup:

    iOS
    On the iOS platform, ensure that your iOS platform project sets the Entitlements.plist file as the custom entitlements file for signing the bundle.

    To use iOS Universal Links:

    1. Add an Associated Domains entitlement to your app, with the applinks key, including all the domains your app will support.
    2. Add an Apple App Site Association file to your website.
    3. Add the applinks key to the Apple App Site Association file.

    For more information, see Allowing Apps and Websites to Link to Your Content on developer.apple.com.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.