Modifying the SDK
Last updated
Last updated
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.
Open the Dashboard-SDK scene located at /Assets/ARway/ViewerMode/0_Scene
.
Select the DomainHandler object.
In the Inspector window, edit the DOMAIN under the Domain Handler (Script) to your custom domain URL.
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:
Android: AndroidManifest.xml
iOS: entitlements fille
Open your project in Xcode.
Choose your target, in this case it is Unity-iPhone.
Access the "Capabilities" tab.
Scroll down to "Associated Domains".
Click the Add button (+) to insert a service-domain placeholder.
Add your domain link, like applinks:www.yourdomain.com
.
Save your changes and build your app.
For more information view this link from the Apple docs:
AndroidManifest.xml
Path: Assets/ARwayKitSDK/Plugins/Android/AndroidManifest.xml
Open the 'AndroidManifest.xml' file in a text editor or within Unity's editor.
Locate the deep link URL in the file, which should look like this:
Replace the existing URL with your custom domain URL 'www.yourdomain.com':
After making the necessary modifications to the SDK files, follow these steps to rebuild the app on your device:
Save all the modified files.
In Unity, go to 'File' > 'Build Settings'.
Select your target platform (e.g., Android / iOS).
Click on 'Build and Run' to rebuild the app with your custom deep link URLs.