![]() In the properties of this file, select Always copy in Copy to output directory. For demo purposes, I’m using an asterisk (wildcard) in the paths to pass off all URLs to the app.Change the appID in this file to the App ID Prefix and Bundle Identifier you stored before. ![]() Is should be named apple-app-site-association (without any extension).īelow you’ll find the most basic version of this file to make Universal Links work.The file should be placed in the root or in the.Simply create a New File… in the The file should have the following requirements: The apple-app-site-association-file (or AASA-file for short) is a JSON file on your website with URLs that your app can handle. Under App Services, make sure the Associated Domains is checked.įinish the registration process and return to Visual Studio.Select Explicit App ID and enter your chosen Bundle Identifier.Just like the Bundle Identifier, we’ll need to store it for later use. Here you’ll find your App ID Prefix (in my case CBDD34BUH7).Head over to the Apple Developer center and Register an App ID. In my case, this is and we’ll need to write it down for later. Open up the ist-file inside your iOS project and check the Bundle Identifier. Now we have everything setup to add iOS Universal Links, so let’s move on. When your solution is created, Right-click it in Visual Studio and Add New Project… Create a ASP.NET Core Web App and give it a name. I named it UniLink (short for Universal Links). Start up Visual Studio and create a New Solution… Create a Blank Forms App and since we’re only interested in iOS for this demo, remove Android as a Target Platform and continue. An Apple Developer account to deploy the app to a device.You’ll need a physical device running iOS9+. Important: iOS Universal Links does not work in the iOS Simulator. A subscription on Azure to deploy a website.Visual Studio for Mac (VS for Windows would work too).In order to get started, I’ll be using the following setup: Otherwise, read on and learn how to add support for iOS Universal Links in Xamarin.Forms working on ASP.NET Core Web App hosted in Microsoft Azure. You can view the source on Github if you directly want to dive into the code. Turns out, it’s pretty easy!įor this demo we’ll be using Xamarin.Forms and a ASP.NET Core website hosted in Azure. The concept has already been around since iOS9 and is well documented, but I wanted to see how this works together with Xamarin.Forms. Universal Links are a great way in iOS to create a more seamless experience for the user between a website and an app.
0 Comments
Leave a Reply. |