# Read Android intent extra data on Unreal app launch

**URL:** <https://forums.unrealengine.com/t/read-android-intent-extra-data-on-unreal-app-launch/383948>\
**Category:** Mobile\
**Tags:** manifest, unreal-engine, Android, question\
**Created:** [February 4, 2017, 7:21pm UTC](https://forums.unrealengine.com/t/read-android-intent-extra-data-on-unreal-app-launch/383948 "2017-02-04T19:21:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![panha](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@panha](https://forums.unrealengine.com/u/panha)\
**Post date:** [February 4, 2017, 7:21pm UTC](https://forums.unrealengine.com/t/read-android-intent-extra-data-on-unreal-app-launch/383948/1 "2017-02-04T19:21:27Z")

</div>

I am trying to launch an Unreal application from a website with a provided URL.

I cannot figure out how to read the intent extra data in Unreal. I need this, in order to performs different actions based on the data that is provided with the link.

Please help!

---

<div class="post-metadata">

**Author:** ![SHOBBIT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SHOBBIT](https://forums.unrealengine.com/u/SHOBBIT)\
**Post date:** [February 6, 2017, 5:06am UTC](https://forums.unrealengine.com/t/read-android-intent-extra-data-on-unreal-app-launch/383948/2 "2017-02-06T05:06:01Z")

</div>

I can try to help. Could you be a little more specefic as to what you want.

---

<div class="post-metadata">

**Author:** ![panha](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@panha](https://forums.unrealengine.com/u/panha)\
**Post date:** [February 6, 2017, 11:02am UTC](https://forums.unrealengine.com/t/read-android-intent-extra-data-on-unreal-app-launch/383948/3 "2017-02-06T11:02:05Z")

</div>

Hi, to give you an example:

let’s say there is a uri in my website in this format:

myapp://open?custom\_param1=val1

when the user click on the link it will start the unreal application and based on the params provided here I want to spawn different actors to the level.

This is the similar post from stackoverflow:

> <https://stackoverflow.com/questions/31764916/getting-data-to-app-with-intent-from-browser-link>

From unity:

> <https://stackoverflow.com/questions/36098400/read-android-intent-extra-data-on-unity-app-launch>

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [February 6, 2017, 7:38pm UTC](https://forums.unrealengine.com/t/read-android-intent-extra-data-on-unreal-app-launch/383948/4 "2017-02-06T19:38:20Z")

</div>

You can use UnrealPluginLangauge (UPL) to add the category to the intent in the AndroidManifest.xml and add Java code to GameActivity.java to read the custom\_param1 like in the stackoverflow answer. You will need to add JNI to call the Java routine from C++ to get the value. You can do this like Josh mentioned in the other AnswerHub you posted to: [link text](https://answers.unrealengine.com/questions/104948/platform-specific-functionality-in-ue4-game.html)

---

<div class="post-metadata">

**Author:** ![panha](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@panha](https://forums.unrealengine.com/u/panha)\
**Post date:** [February 7, 2017, 1:14pm UTC](https://forums.unrealengine.com/t/read-android-intent-extra-data-on-unreal-app-launch/383948/5 "2017-02-07T13:14:19Z")

</div>

Hi I’m using Mobile Utils[1] plugin to add method the gameActivity.java and be able to add category to the AndroidManifest.xml.

I found this guide of how to add the new intent-filter.

> **[Add category to intent-filter into AndroidManifest.xml](https://forums.unrealengine.com/questions/340066/add-category-to-intent-filter-into-androidmanifest.html)**
>
> Hi, I need to add a category item into intent-filter of activity section. I couldn't do it through Editor. I suppose it's impossible now, so can I suggest it for next release? And how to workaround it for now? Thanks

This is how I to loop through the activity and add a new intent-filer and fill it up with new category, but it’s also get added to the first intent filter.

```
			<setStringFromAttribute result="activityName" tag="$" name="android:name"/>
			<setBoolIsEqual result="bGameActivity" arg1="$S(activityName)" arg2="com.epicgames.ue4.SplashActivity"/>
			<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" android:pathPrefix="/gizmos" />
					        <data android:scheme="example" android:host="gizmos" />
					      </intent-filter>
							</addElements>
					</true>
			</if>
	</loopElements>

```

[1] [GitHub - gameDNAstudio/MobileUtils: A plugin for Unreal Engine 4 that lets you integrate mobile utilities into your project.](https://github.com/gameDNAstudio/MobileUtils)

---

<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, 5:14pm UTC](https://forums.unrealengine.com/t/read-android-intent-extra-data-on-unreal-app-launch/383948/6 "2021-09-07T17:14:18Z")

</div>

Hi,

I want to do the same thing, could you provide please how do you achieve it? How can you access the custom\_param1 value inside unreal?.

I have the APL configured similar to yours, with some addition on gameActivityOnCreateAdditions to get the custom\_param1 value, but now, I don’t know how to pass this value to one of my c++ functions or blueprints.

Thanks,  
David.
