-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes aren't applied to the Android Manifest.xml in godot 4 #82399
Comments
I can confirm that the |
As a matter of fact, it would be nice to have access to the |
In my case, I wanted to add support for deep links. Any changes to the default activity section were being overwritten. However, I was able to add an activity-alias with the correct intent filter. The activity-alias was included in the built APKs manifest file....
|
Seems like deep links is a desired feature. What if it is implemented as an export option, like "use deeplink" and "scheme". These lines:
could maybe be inserted in the binary manifest in _fix_xml function? I am not super familiar with the manifest format but maybe there is a more generic way to access the manifest when exporting. |
The
Here's an example from the Godot OpenXR plugin, that updates the manifest to include XR related tags and properties. |
Hi @m4gr3d ! I'm not sure if this might be the place to ask this, most likely it is not, but now we can modify the manifest in godot 4.2, but I can't see a way to add new string resources to the android app programatically. Let's say I need to add to the manifest this xml tag in the application block:
That would be added, but the string resource is not being created. Do you think this might be an interesting feature? Maybe there's a way to achieve this programatically, rather than modifying the android build directly like the android plugins prior to 4.2? Thanks for your help! |
@Iakobs you can achieve that programmatically by creating an Android plugin that'll contain the resources you want to add. At export time, the Android plugin binary ( For information on the Android plugin, see https://docs.godotengine.org/en/stable/tutorials/platform/android/android_plugin.html |
Oh damn, you're right! thanks a lot, I always forget about the manifest merging! |
Closing this issue as #82399 (comment) describes the process to apply changes to the |
Godot version
4.1.1
System information
Godot v4.1.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated AMD Radeon(TM) RX 560 (Advanced Micro Devices, Inc.; 27.20.2001.8002) - Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz (4 Threads)
Issue description
Intent filters no longer work when they are added to the Android Manifest.xml in the build directory, infact most things don't respond when they are added to the Android Manifext.xml file, it seems like the Engine just ignores any addition that wasn't part of the original Manifest file setup by the engine, you can confirm this by looking at the merge manifest files after exporting the android project, you'll notice that the new changes you added to the android manifest file are not merged
Steps to reproduce
Minimal reproduction project
AndroidManifestTest.zip
You can install the andoid build template from the godot project, didn't add it to the file because it was to large, the Android Manifest file is already provided here, once done add a deep link intent filter and call it from the device you'll see that the app doesn't respond
The text was updated successfully, but these errors were encountered: