ARwayKit SDK
❱ HOMEPAGE⚎ DEVELOPER PORTAL
  • Introduction
  • Change Log
  • FAQ
  • ARWAY SDK
    • Getting Started
    • Building from the Source Code
    • Integrating the Unity Package
    • Managing App Localizations
      • Enabling Right-to-Left (RTL) Text
    • Sample Scenes
      • Dashboard
      • AR Map Session
    • Branding the Sample App
      • Replacing ARway Logos in the Sample App
    • Third Party
    • SDK Upgrade Guide
      • 3.1.0 -> 3.1.4
      • 3.0.1 -> 3.1.0
      • 3.0.0 -> 3.0.1
      • 2.5.1 -> 3.0.0
      • 2.3.1 -> 2.5.1
      • 2.3 -> 2.3.1
    • Enhancing the Sample App
      • Instant Location Pin Navigation
      • Customizing the Default Navigation Arrow
      • Initializing AR Using an IAP
  • Maps Studio
    • Overview
    • Maps Studio
      • Creating a Map
      • Editing Map Details
      • Uploading Content
      • QR Codes
      • Image Access Points (IAPs)
      • Floorplans
      • Using the Editor
      • Occlusion
      • Analytics
  • ARwayKit SDK Integrations
    • Flutter
      • Quickstart in Flutter
    • React Native
      • Quickstart in React Native
    • Android Kotlin
      • Quickstart in Android Kotlin
    • Android Java
      • Quickstart in Android Java
    • iOS Swift
      • Quickstart in iOS Swift
  • Deep Linking
    • What is Deep Linking?
    • Creator Portal Changes
    • Modifying the SDK
    • Configuring Server Files
  • DEVELOPER FEEDBACK
    • Support
Powered by GitBook
On this page
  • Update the DomainHandler in the Dashboard-SDK scene
  • Modify the SDK Files
  • iOS
  • Android
  • Rebuild the App
  1. Deep Linking

Modifying the SDK

PreviousCreator Portal ChangesNextConfiguring Server Files

Last updated 1 year ago

ARway Unity SDK allows you to create and customize deep links for your augmented reality (AR) experiences. Deep links can be used to direct users to specific content within your AR app. By default, the ARway SDK uses the URL 'anchor.arway.ai', but you may want to use your custom domain URL for branding purposes.

By default, the Sample App can scan QR codes with the custom domain you have set, but there are a few changes that should be made for Android and iOS for deep linking.

Update the DomainHandler in the Dashboard-SDK scene

  1. Open the Dashboard-SDK scene located at /Assets/ARway/ViewerMode/0_Scene.

  2. Select the DomainHandler object.

  3. In the Inspector window, edit the DOMAIN under the Domain Handler (Script) to your custom domain URL.

Modify the SDK Files

To change the URL from 'anchor.arway.ai' to your custom domain URL 'www.yourdomain.com', you need to modify the following files in the ARway Unity SDK:

  1. Android: AndroidManifest.xml

  2. iOS: entitlements fille

iOS

Modifying the entitlements file

  1. Open your project in Xcode.

  2. Choose your target, in this case it is Unity-iPhone.

  3. Access the "Capabilities" tab.

  4. Scroll down to "Associated Domains".

  5. Click the Add button (+) to insert a service-domain placeholder.

  6. Add your domain link, like applinks:www.yourdomain.com.

  7. Save your changes and build your app.

For more information view this link from the Apple docs:

Android

Modifying AndroidManifest.xml

Path: Assets/ARwayKitSDK/Plugins/Android/AndroidManifest.xml

  1. Open the 'AndroidManifest.xml' file in a text editor or within Unity's editor.

  2. Locate the deep link URL in the file, which should look like this:

    <data android:host="anchor.arway.ai" />
  3. Replace the existing URL with your custom domain URL 'www.yourdomain.com':

    <data android:host="qr.yourdomain.com" />

Rebuild the App

After making the necessary modifications to the SDK files, follow these steps to rebuild the app on your device:

  1. Save all the modified files.

  2. In Unity, go to 'File' > 'Build Settings'.

  3. Select your target platform (e.g., Android / iOS).

  4. Click on 'Build and Run' to rebuild the app with your custom deep link URLs.

Editing the DOMAIN in the Dashboard-SDK scene
Configuring an associated domain | Apple Developer DocumentationApple Developer Documentation
Logo