Android DeepLink extra sting for activity adding extra "\" instead of a new line

Hello everyone,

I’m tinkering around with a project in unreal and I’m trying to setup DeepLinks to work with the game I’m making. The idea is if the game is installed on your phone and you get a message that has, say, “example://gizmos” that message would be clickable and it launches the game with whatever data came from the message.

I’ve been following these:

From what I gather I need to add this chunk to the AndroidManifest.xml:

<intent-filter android:label="@string/filter_view_http_gizmos">
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
        <data android:scheme="http"
              android:host="www.example.com"
              android:pathPrefix="/gizmos" />
        <!-- note that the leading "/" is required for pathPrefix-->
    </intent-filter>
    <intent-filter android:label="@string/filter_view_example_gizmos">
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <!-- Accepts URIs that begin with "example://gizmos” -->
        <data android:scheme="example"
              android:host="gizmos" />
    </intent-filter>

So I went to the project settings and I think I need to add it here:


Extra Settings for section (\n to separate lines)

So I take all that stuff make it into a single line and add \n as seen below:

<intent-filter android:label="@string/filter_view_http_gizmos"> \n <action android:name="android.intent.action.VIEW" /> \n <category android:name="android.intent.category.DEFAULT" /> \n <category android:name="android.intent.category.BROWSABLE" /> \n <!-- Accepts URIs that begin with "http://www.example.com/gizmos” --> \n <data android:scheme="http" \n     android:host="www.example.com" \n      android:pathPrefix="/gizmos" /> \n <!-- note that the leading "/" is required for pathPrefix--> \n </intent-filter> \n <intent-filter android:label="@string/filter_view_example_gizmos"> \n <action android:name="android.intent.action.VIEW" /> \n <category android:name="android.intent.category.DEFAULT" /> \n <category android:name="android.intent.category.BROWSABLE" /> \n <!-- Accepts URIs that begin with "example://gizmos” --> \n <data android:scheme="example" \n   android:host="gizmos" /> \n </intent-filter>

When i go to package the game, this is what happens:


As you might be able to tell, it seems to be adding the chunk correctly and adding new lines but it is somehow leaving behind or adding additional " \ " that aren’t there… and so I get this error:

PackagingResults: Error: AndroidManifest.xml is invalid System.Xml.XmlException: '\' is an unexpected token. The expected token is '"' or '''. Line 36, position 33.

Has anyone managed to get android AppLinks to work with their game? Anyone know what I might be doing wrong?

Small update, seems like if I do one or the other intents they work, but together they don’t.
If anyone knows of a good resource or tutorial out there to get applinks working I’d be grateful.

Hello, it’s been a while, but have you managed to figure a solution out to this?

I would much rather write deep links in the project settings than write a Manifest.XML myself.

Hey are you able to open the app, I am trying to add the following in the Extra Settings

<intent-filter> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" android:host="www.shivamtest.com" /></intent-filter>

but it is not opening, any lead will be helpful.