-
Notifications
You must be signed in to change notification settings - Fork 25
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
Don't add the LAUNCHER
intent; Godot already has an export option for it
#231
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Godot already has an export option ("Show In App Library") to add this intent, and it's already enabled by default. So, we don't really even need to add this
Godot defines an intent-filter
for regular app launch, the logic in this plugin adds another intent-filter
for XR launches. The intent-filter do not merge, and so don't share their categories, so it's necessary to add the LAUNCHER
category to this intent-filter as well.
Can you elaborate further on the issue you're seeing configuring the manifest for hybrid apps.
Hm, I don't think that's exactly right. When doing a gradle-based export without this PR, we end with the following in the <activity
android:name="com.godot.game.GodotApp"
android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
android:excludeFromRecents="false"
android:exported="true"
android:label="@string/godot_project_name_string"
android:launchMode="singleInstancePerTask"
android:resizeableActivity="true"
android:screenOrientation="landscape"
android:theme="@style/GodotAppSplashTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<!--
Enable access to OpenXR on Oculus mobile devices, no-op on other Android
platforms.
-->
<category android:name="com.oculus.intent.category.VR" />
<!--
OpenXR category tag to indicate the activity starts in an immersive OpenXR mode.
See https://registry.khronos.org/OpenXR/specs/1.0/html/xrspec.html#android-runtime-category.
-->
<category android:name="org.khronos.openxr.intent.category.IMMERSIVE_HMD" />
</intent-filter> The first For hybrid apps (in my current implementation), we are adding a new activity, and depending on the settings, we may want that activity to have Unfortunately, due to the way Android manifest merging works, we can't add do I hope that makes sense? If not, maybe we can do a call and I can show you :-) |
Or, actually, I think I understand what you're saying now. So, maybe what we need is an export option to enable/disable the |
Presently, we are forcibly adding this Android intent for when using any OpenXR loader:
... however: