Hello,
Using Universal Links need the following prerequisites :
- You must have a corresponding website (have a domain name) for your app and the ability to upload a file to it.
- Find your App ID in https://developer.apple.com/account/resources/identifiers/list, enable Associated Domains under Capabilities
- Find Associated Domains in
Entitlements.plist
of your iOS project, fill in the domain name you want to support in Domains, which must be prefixed withapplinks:
- Create a file in JSON format, the file name must be
apple-app-site-association
- Upload the file to your website
my app will response any URL/website, not a limited websites.
You could check the path
in the JSON file in step4, only the links of the specified paths can be processed by the app. If you fill in *
, it represents all links.
{
"applinks": {
"details": [
{
"appIDs": [
"ABCDE12345.com.example.app",
"ABCDE12345.com.example.app2"
],
"paths": [
"*"// replace * with your path
]
}
]
}
}
Then you could use OnAppLinkRequestReceived method to check if the received Uri is intended for the application.
For more details, you could refer to
https://developer.apple.com/documentation/Xcode/supporting-associated-domains
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/deep-linking#responding-to-a-deep-link
https://developer.apple.com/ios/universal-links/
https://developer.apple.com/documentation/xcode/allowing-apps-and-websites-to-link-to-your-content
Could you advice my how to develop such a Xamarin.iOS custom browser?
If you want to configure your browser app so that users can set it as the default on their device instead of Safari, refer to
https://developer.apple.com/documentation/xcode/preparing-your-app-to-be-the-default-browser-or-email-client
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.