WebViewGold Documentation · iOS
🇺🇸 English
Get WebViewGold

Universal Links API

Open links to your domain directly in your iOS app with Apple Universal Links — setup, AASA file, and troubleshooting.

The Universal Links API simplifies linking to content within your app, providing a more seamless and native user experience. WebViewGold enables you to configure your domain so that links from apps like Mail, Safari, and others automatically open within your WebViewGold-based app—without requiring additional prompts.

Note: the app must be installed on the user's device first for this feature to work.

Alternatively, it is possible to use our Deep Linking API. While it operates in a similar manner, it uses a different syntax. However, it's worth noting that the syntax of the Universal Links API is more common than the syntax of the Deep Linking API. For most apps, it's wise to choose either one, but not both.


To set up Universal Links in your iOS app, please follow the steps below:

  1. Apple Developer Center Setup:
    1. Log in to your account on the Apple Developer Center.
    2. Click on 'Certificates, Identifiers & Profiles'.
    3. Under 'Identifiers', select 'App IDs' and then choose your app's ID from the list.
    4. Under the 'App Services' section, check the 'Associated Domains' option and save your changes.

  2. Xcode Setup:
    1. Open your app project in Xcode.
    2. Select the target (in most cases "WebViewGold"). In the 'Signing & Capabilities' tab, navigate to the 'Associated Domains' section. Click on '+' to add a domain. Your domain should be prefixed with 'applinks:', like this: applinks:example.org & applinks:www.example.org:

      Associated Domains in Xcode

    3. In Config.swift, turn ShowExternalLink to true.
    4. Be mindful of subdomains. There's a distinction between "www.*" and non-"www" domains (consider adding both). Ensure that you have the correct provisioning profile with the 'Associated Domains' capability. If not, Xcode should prompt you to fix it.

  3. Server Setup:
    1. On your website server, you need to host an Apple App Site Association (AASA) file at the root level of your server or using the /.well-known/ prefix. E.g., https://example.org/.well-known/apple-app-site-association
    2. The AASA file should contain details about the app and the associated domains. Refer to the official documentation for the exact structure. Ensure that the apple-app-site-association file is hosted on a server that supports HTTPS, not just HTTP.

Done! :-) Testing in the Simulator isn't as effective as on a real device. For best results, use an actual iPhone or iPad.

SDK-style implementation notes

Treat this feature as a native capability exposed to your web layer: keep your production website or PWA as the source of truth, then use the documented WebViewGold configuration flags, URL commands, and JavaScript bridge calls to opt in to native iOS behavior only where it adds value. This approach keeps your codebase maintainable because the same web application can serve browsers, WebViewGold for iOS, and the other WebViewGold platforms with minimal conditional logic.

For reliable results, prefer HTTPS endpoints, stable route names, explicit success/error states in your UI, and small JavaScript helper functions that wrap native calls. For example, a web app built with jQuery Mobile, Lovable, Base44, Bolt, WordPress, Bubble, a custom React/Vue/Angular stack, or static HTML can expose a single button or event handler that triggers the native WebViewGold API while still showing a graceful browser fallback.

  • Recommended integration pattern: detect the app context, call the WebViewGold API, then update your web UI after the native callback or route change.
  • Testing checklist: validate the feature on a real device or packaged build, verify permissions and store review text, and confirm that browser-only users still receive a useful fallback.
  • SEO benefit: keep feature pages, route titles, and structured content indexable on your website while WebViewGold delivers the native app shell for iOS users.

Too busy? We set up your app for you.

Our team configures, builds & submits your WebViewGold app — done-for-you, fast turnaround, Made in Germany.

Get your app set up →

Build in your browser

No Mac, no IDE: the WebViewGold Cloud Builder configures, builds & uploads your app online.

Discover Cloud Builder →