# \[Solved\] Launch URL doesn't work in Android for SDK target 30

**URL:** <https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399>\
**Category:** Mobile\
**Tags:** Android-Packaging, permission, unreal-engine, Android, question\
**Created:** [September 5, 2021, 1:08am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399 "2021-09-05T01:08:10Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr.Widgit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dr.Widgit](https://forums.unrealengine.com/u/Dr.Widgit)\
**Post date:** [September 5, 2021, 1:08am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/1 "2021-09-05T01:08:10Z")

</div>

If you want to add a button in your app to open an external webpage you would use a Launch URL blueprint block to do this. I’m on my first Android app and working my way through the Google Play requirements. One such requirement is the SDK target for new apps must be set to 30. In SDK target 29 the Launch URL block worked, in 30 it doesn’t.

It seems there is a new permission requirement now. In your project settings, go to the **Advanced APK Packaging** section → **Extra Permissions** → Add a new array element: **android.permission.QUERY\_ALL\_PACKAGES**

As a secondary point, for AAB packaging, in the **App Bundles** section, make sure you check **Generate bundle (AAB)** and in the **APK Packaging** section check **Package game inside .apk**. If you are using the save game functionality, in the **APK Packaging** section, check **Use ExternalFilesDir for UE4Game files** to enable file writes.

---

<div class="post-metadata">

**Author:** ![Dr.Widgit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dr.Widgit](https://forums.unrealengine.com/u/Dr.Widgit)\
**Post date:** [September 5, 2021, 1:11am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/2 "2021-09-05T01:11:31Z")

</div>

See above.

---

<div class="post-metadata">

**Author:** ![BOB.cat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BOB.cat](https://forums.unrealengine.com/u/BOB.cat)\
**Post date:** [November 5, 2021, 12:38pm UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/3 "2021-11-05T12:38:57Z")

</div>

According to Google, this permission is kind of sensitive and may be rejected.  
Explained [here](https://support.google.com/googleplay/android-developer/answer/10158779)

Looking for a less intrusive method.

---

<div class="post-metadata">

**Author:** ![Featuriing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/featuriing/32/1135409_2.png) [@Featuriing](https://forums.unrealengine.com/u/Featuriing)\
**Post date:** [May 31, 2022, 2:20pm UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/4 "2022-05-31T14:20:02Z")

</div>

@BOB.cat did you find a solution?  
I’m also looking for a way to open URLs in the browser, as it was possible before SDK target 30 😕

---

<div class="post-metadata">

**Author:** ![Featuriing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/featuriing/32/1135409_2.png) [@Featuriing](https://forums.unrealengine.com/u/Featuriing)\
**Post date:** [June 12, 2022, 12:35pm UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/5 "2022-06-12T12:35:44Z")

</div>

Okay so I was looking into this in a bit more detail. As others already wrote, adding the android.permission.QUERY\_ALL\_PACKAGES works, but is **definitely not recommended**.

The easiest way of solving this is to upgrade the project to 4.27. With 4.27 the following commit fixes this issue for SDK target 30: [https://github.com/EpicGames/UnrealEngine/commit/e49afc395b171e1d0c39e2d79b16ca2be8ea982c](https://github.com/EpicGames/UnrealEngine/commit/e49afc395b171e1d0c39e2d79b16ca2be8ea982c)

In case upgrading isn’t an option for some reason, there are 2 things that are required additionally to make launching URLs work for SDK target 30 without adding the QUERY\_ALL\_PACKAGES permission:

As described [here](https://developer.android.com/training/package-visibility/use-cases#open-urls-browser-or-other-app), the android manifest file needs to be extended to properly handle queries to intents of other apps - like when opening a link in a browser.  
This can be done using a UPL file to edit the manifest, as this file is assembled while packaging the project. A neat explanation of how to create and use such a file to modify the manifest can be found [here](https://forums.unrealengine.com/t/android-permissions-problems/86380/4)  
For the UPL file use this content to add the required lines to the manifest:

```auto
<?xml version="1.0" encoding="utf-8"?>
<root xmlns:android="http://schemas.android.com/apk/res/android">
    <androidManifestUpdates>
        <addElements tag="manifest">  
          <queries>
            <intent>
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data android:scheme="http" />
            </intent>
            <intent>
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data android:scheme="https" />
            </intent>
          </queries>
        </addElements>
    </androidManifestUpdates>
</root>

```

In addition to that, you need to use a source build of the engine to add the following to line 4204 in Engine/Build/Android/Java/src/com/epicgames/ue4/GameActivity.java.template:

```auto
BrowserIntent.addCategory(Intent.CATEGORY_BROWSABLE);

```

You can check the above linked github commit to see the full code and where the above shown line needs to be added exactly.

---

<div class="post-metadata">

**Author:** ![devmetaforce](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devmetaforce/32/495583_2.png) [@devmetaforce](https://forums.unrealengine.com/u/devmetaforce)\
**Post date:** [June 15, 2022, 6:09am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/6 "2022-06-15T06:09:15Z")

</div>

so what is the bad side of the first method?

---

<div class="post-metadata">

**Author:** ![Featuriing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/featuriing/32/1135409_2.png) [@Featuriing](https://forums.unrealengine.com/u/Featuriing)\
**Post date:** [June 15, 2022, 9:49am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/7 "2022-06-15T09:49:14Z")

</div>

By first method you mean adding the android.permission.QUERY\_ALL\_PACKAGES permission, right?

It is basically in our all interest to give apps on our android devices only those permissions that are really required. Otherwise, in case each app has all permissions, you wont be able to tell if some of them are now spying on your phone calls or maybe tracking what apps you are having installed - where the latter would be doable using the QUERY\_ALL\_PACKAGES permission.

Therefore Android ranks this permission as “high risk” / “sensitive” and only allows it to be used if actually required by your app. This means, when just using it as a shortcut to open links, your app will pretty likely never be approved to be published on the play store.

You can read more about it here, as @BOB.cat wrote already:

> **[Use of the broad package (App) visibility (QUERY\_ALL\_PACKAGES) permission -...](https://support.google.com/googleplay/android-developer/answer/10158779)**
>
> Google Play restricts the use of high-risk or sensitive permissions, including the QUERY\_ALL\_PACKAGES permission, which gives visibility into the inventory of installed

Here a quote (from link above) explaining further when the usage of this permission would be allowed:

> To use this permission, your app must fall within permitted uses below, and have a core purpose to search for all apps on the device. You must be able to adequately justify why a less intrusive method of app visibility will not sufficiently enable your app’s policy-compliant user-facing core functionality.  
> Core functionality is defined as the main purpose of the app. Without this core ability to search for all apps on the device, the app is “broken” or becomes unusable. The core functionality, as well as any core features that comprise this core functionality, must all be prominently documented and promoted in the app’s description.

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 16, 2022, 1:30am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/8 "2022-06-16T01:30:39Z")

</div>

@Featuriing so can i use Android SDK 29 is better than without using QUERY\_ALL\_PACKAGES permission with SDK 30 right?

i mean Android SDK 29 is better right? for “Launch URL”

for me am using LAUNCH URL for Deep Link

---

<div class="post-metadata">

**Author:** ![Featuriing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/featuriing/32/1135409_2.png) [@Featuriing](https://forums.unrealengine.com/u/Featuriing)\
**Post date:** [June 16, 2022, 7:37am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/9 "2022-06-16T07:37:17Z")

</div>

Yes, in theory that would be correct @ganbaa_elmer

But Google requires you to use target sdk 30 to be able to publish a new app, unfortunately.  
You can read more about that here: [Meet Google Play's target API level requirement &nbsp;|&nbsp; Android Developers](https://developer.android.com/google/play/requirements/target-sdk)

The easiest solution is to just upgrade to 4.27 🙂

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 16, 2022, 1:13pm UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/11 "2022-06-16T13:13:32Z")

</div>

@Featuriing i followed your instruction but it didn’t work  
My DeepLink didn’t work. Maybe i misunderstood some steps:  
Can you instruct for us to step by step.

Please help me

---

<div class="post-metadata">

**Author:** ![Featuriing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/featuriing/32/1135409_2.png) [@Featuriing](https://forums.unrealengine.com/u/Featuriing)\
**Post date:** [June 16, 2022, 2:07pm UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/12 "2022-06-16T14:07:52Z")

</div>

@ganbaa_elmer are you trying to open a deepLink from an application like whatsapp, which then should automatically open your own app?  
Or are you trying to open a link like [https://twitter.com](https://twitter.com) using the LaunchURL node from within your app, which then should bring up the installed twitter app?

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 16, 2022, 2:41pm UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/13 "2022-06-16T14:41:55Z")

</div>

@Featuriing am trying to open app by using Launch URL. source app is my ue4 game and destination apps is already installed apps on my phone. Not websites, not like [https://twitter.com](https://twitter.com/)  
i mean i need to open Twitter app on my mobile phone. (Android and IOS)  
for Android SDK 29 its working fine but on SDK 30 it didn’t work.

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 17, 2022, 1:05am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/14 "2022-06-17T01:05:40Z")

</div>

@Featuriing any suggestions?  
please step by step instructions

---

<div class="post-metadata">

**Author:** ![Featuriing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/featuriing/32/1135409_2.png) [@Featuriing](https://forums.unrealengine.com/u/Featuriing)\
**Post date:** [June 17, 2022, 8:36am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/15 "2022-06-17T08:36:46Z")

</div>

@ganbaa_elmer actually using launchURL with “[https://twitter.com](https://twitter.com)” on your android smartphone should automatically open the twitter app.  
What happens if you launch lets say [https://google.com](https://google.com)? Is the browser opening on android?

As I wrote in my initial post: There are 2 things you need to do. You have to add the to your android manifest file using a custom UPL file. And you have to edit the engine source code to add the CATEGORY\_BROWSABLE to the browserIntent before starting it. Once these two things are done (and the engine is recompiled) you should be able to properly open apps like twitter, using [http://twitter.com](http://twitter.com), for example.

Check my initial post, as well as the links that I was sharing there, for more detailed instructions 🙂

---

<div class="post-metadata">

**Author:** ![Warani\_Studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Warani\_Studios](https://forums.unrealengine.com/u/Warani_Studios)\
**Post date:** [October 12, 2022, 12:50pm UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/17 "2022-10-12T12:50:42Z")

</div>

Not working on 4.27 at all

---

<div class="post-metadata">

**Author:** ![ArnoldAdkins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArnoldAdkins](https://forums.unrealengine.com/u/ArnoldAdkins)\
**Post date:** [August 15, 2023, 4:49am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/18 "2023-08-15T04:49:54Z")

</div>

> [@ganbaa\_elmer](#):
>
> so can i use Android SDK 29 is better than without using QUERY\_ALL\_PACKAGES permission with SDK 30 right?
> 
> i mean Android SDK 29 is better right? for “Launch URL”
> 
> for me am using LAUNCH URL for Deep Link

Hello

So I can use Android SDK 29 better than not using QUERY\_ALL\_PACKAGES permission with SDK 30 right?

I mean Android SDK 29 is better right?

---

<div class="post-metadata">

**Author:** ![ArnoldAdkins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArnoldAdkins](https://forums.unrealengine.com/u/ArnoldAdkins)\
**Post date:** [August 18, 2023, 3:16am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/19 "2023-08-18T03:16:53Z")

</div>

helo

i found a solution [https://modilimitado.com/hole-house-apk](https://modilimitado.com/hole-house-apk) you can click here for reference It

---

<div class="post-metadata">

**Author:** ![PoOlluX\_fr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PoOlluX\_fr](https://forums.unrealengine.com/u/PoOlluX_fr)\
**Post date:** [March 10, 2024, 9:24am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/20 "2024-03-10T09:24:33Z")

</div>

Hello,

I also struggled with this problem.

I didn’t wan’t to have the QUERY\_ALL\_PACKAGES activated for my app while still being able to use the Launch URL node to open the Google Maps App on Android.  
I found a solution that doesn’t require to recompile the whole engine at this [link](https://zenn.dev/pytokyo/articles/6e6ba1a62a133a) which I translated in my language with google translate.

It tells you to edit the java file `Engine/Build/Android/Java/src/com/epicgames/ue4/GameActivity.java.template`  
in the engine folder and comment out some lines that call the getPackageManager() function which requires that QUERY\_ALL\_PACKAGES permission:

```auto
//if (BrowserIntent.resolveActivity(getPackageManager()) != null)
//{
    Log.debug("[JAVA} AndroidThunkJava_LaunchURL: Starting activity");
    startActivity(BrowserIntent);
//}

```

On my specific case it worked and maybe someone will find this useful here 🙂

---

<div class="post-metadata">

**Author:** ![Aquantar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aquantar](https://forums.unrealengine.com/u/Aquantar)\
**Post date:** [March 18, 2025, 6:16pm UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/21 "2025-03-18T18:16:17Z")

</div>

This works on 5.3.2 with sdk 34, thanks a bunch @PoOlluX_fr
