# Open android game from url with parameters

**URL:** <https://forums.unrealengine.com/t/open-android-game-from-url-with-parameters/488504>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, question\
**Created:** [September 7, 2021, 6:25pm UTC](https://forums.unrealengine.com/t/open-android-game-from-url-with-parameters/488504 "2021-09-07T18:25:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davixe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davixe](https://forums.unrealengine.com/u/Davixe)\
**Post date:** [September 7, 2021, 6:25pm UTC](https://forums.unrealengine.com/t/open-android-game-from-url-with-parameters/488504/1 "2021-09-07T18:25:49Z")

</div>

Hi,

I want to make my android game open with a custom link like this:

```
http://www.example.com/open?custom_param1=val1

```

and retrieve the information of the custom\_param1 and use it on my game. I tried to search info and I got the following setup:

on my game.Build.cs I added this:

```
string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
            AdditionalPropertiesForReceipt.Add(new ReceiptProperty("AndroidPlugin", System.IO.Path.Combine(PluginPath, "custom_APL.xml")));

```

then, the custom\_APL.xml is the following:

```
<?xml version="1.0" encoding="utf-8"?>
<root xmlns:android="http://schemas.android.com/apk/res/android">
  <!-- init section is always evaluated once per architecture -->
  <init>
    <log text="test"/>
  </init>

  <!-- optional updates applied to AndroidManifest.xml -->
  <androidManifestUpdates>
    <!-- update the GameActivity activity -->
    <loopElements tag="activity">
      <setStringFromAttribute result="activityName" tag="$" name="android:name"/>
      <setBoolIsEqual result="bGameActivity" arg1="$S(activityName)" arg2="com.epicgames.ue4.GameActivity"/>    
      <if condition="bGameActivity">
        <true>
          <!-- Add App Tiles to manifest file. -->
          <addElements tag="$">
            <intent-filter>
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data android:scheme="http" android:host="www.example.com" />
            </intent-filter>
          </addElements>
        </true>
      </if>
    </loopElements>
  </androidManifestUpdates>
  <gameActivityOnCreateAdditions>
    <insert>
      Uri data = this.getIntent().getData();
      if (data != null){ 
        if(data.isHierarchical(){ 
          if(activity != null) {
            if (data.getQueryParameter("custom_param1") != null) {
              String param1 = data.getQueryParameter("custom_param1");
              Log.debug("now what??.");
            }
          }
        }
      }
    </insert>
  </gameActivityOnCreateAdditions>
</root>

```

I can see that the manifest of my game is getting the intent-filter additions, and when I start the game, I can see the debug line “now what??.” but I have no clue on what to do next. I don’t know how to access the custom\_param1 from c++, and also, my game isn’t launching when I click on “[http://www.example.com/open?custom\_param1=val1](http://www.example.com/open?custom_param1=val1)” hyperlink

Can someone give me some hint or idea to follow? I’m really confused by this.

Thank you,  
David.

---

<div class="post-metadata">

**Author:** ![Cektantwork](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cektantwork/32/717411_2.png) [@Cektantwork](https://forums.unrealengine.com/u/Cektantwork)\
**Post date:** [April 4, 2022, 3:31pm UTC](https://forums.unrealengine.com/t/open-android-game-from-url-with-parameters/488504/2 "2022-04-04T15:31:59Z")

</div>

You found any solution, how get parametr?

---

<div class="post-metadata">

**Author:** ![shive\_1807](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shive\_1807](https://forums.unrealengine.com/u/shive_1807)\
**Post date:** [April 14, 2024, 4:46pm UTC](https://forums.unrealengine.com/t/open-android-game-from-url-with-parameters/488504/3 "2024-04-14T16:46:10Z")

</div>

You need to create a trigger function using JNI which can bridge between c++ and java, and when you receive the data from url, you can trigger that function to get data on the android side.

---

<div class="post-metadata">

**Author:** ![EeBo0o1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EeBo0o1](https://forums.unrealengine.com/u/EeBo0o1)\
**Post date:** [July 9, 2024, 3:29pm UTC](https://forums.unrealengine.com/t/open-android-game-from-url-with-parameters/488504/4 "2024-07-09T15:29:06Z")

</div>

Hey, for solving the issue of that the game is still not open for you.  
You need to add this line

```auto
<action android:name="android.intent.action.VIEW" />

```

in the intent filter and add the (autoVerify= “true”) to the Intent-filter  
so it would be like this

```auto
<intent-filter android:autoVerify= "true">
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data android:scheme="http" android:host="www.example.com" />
</intent-filter>

```

second you need to get in your devices Settings-\>Apps-\>Default Apps-\>Opening Links-\>Your App-\>Supported web addresses  
and allow those addresses if they are off.

then it should work for you.

I hope that helped.

---

<div class="post-metadata">

**Author:** ![LogicalCrow5250](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LogicalCrow5250](https://forums.unrealengine.com/u/LogicalCrow5250)\
**Post date:** [August 3, 2026, 2:56pm UTC](https://forums.unrealengine.com/t/open-android-game-from-url-with-parameters/488504/7 "2026-08-03T14:56:01Z")

</div>

> [@Davixe](#):
>
> Hi,
> 
> I want to make my android game open with a custom link like this:
> 
> ```auto
> http://www.example.com/open?custom_param1=val1
> 
> ```
> 
> and retrieve the information of the custom\_param1 and use it on my game. I tried to search info and I got the following setup:

classic engine limitation lol. u definitely need native java/JNI bridging for custom intent parameters to talk to C++. native options just won’t cut it.
