Skip to content
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

Set isGame flag as true on AndroidManifest #48547

Closed
wants to merge 1 commit into from

Conversation

lucasnlm
Copy link
Contributor

@lucasnlm lucasnlm commented May 7, 2021

Adds android:isGame to AndroidManifest.

@lucasnlm lucasnlm requested a review from a team as a code owner May 7, 2021 22:31
@Calinou Calinou added cherrypick:3.x Considered for cherry-picking into a future 3.x release enhancement platform:android topic:porting labels May 7, 2021
@Calinou Calinou added this to the 4.0 milestone May 7, 2021
@Calinou
Copy link
Member

Calinou commented May 7, 2021

For reference, here's what the documentation says:

android:isGame

Whether or not the application is a game. The system may group together applications classifed as games or display them separately from other applications.

The default is false.

https://developer.android.com/guide/topics/manifest/application-element

This is also used in the Android TV home screen: https://developer.android.com/training/tv/games/

We may want to expose this as an export preset setting (enabled by default), so that people can disable it if they're making non-game applications with Godot.

@akien-mga
Copy link
Member

Could you amend the commit message to be more explicit about what the commit does?

@lucasnlm
Copy link
Contributor Author

lucasnlm commented May 9, 2021

@akien-mga You mean change the commit message?
Updated to Set isGame flag as true on AndroidManifest

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me, but I'll let @m4gr3d review if this should be done as is or configurable as suggested by @Calinou. (Configurability could also be done later on if/when there's a need, and until then users can do custom builds and edit the manifest).

@akien-mga akien-mga requested a review from a team May 9, 2021 08:03
@akien-mga akien-mga changed the title Update AndroidManifest.xml Set isGame flag as true on AndroidManifest May 9, 2021
@m4gr3d
Copy link
Contributor

m4gr3d commented May 10, 2021

I reached out internally, and the isGame attribute is not a reliable indication whether an app is a game or not. It's not respected by the Play store, and not used by the Android system.
In addition, Unity used to have a similar toggle for it and removed it since it didn't matter, so let's not add it as well.

@lucasnlm Even though we won't include it, we really appreciate your contribution and thanks for bringing this to our attention!

@m4gr3d m4gr3d closed this May 10, 2021
@akien-mga akien-mga added archived and removed cherrypick:3.x Considered for cherry-picking into a future 3.x release labels May 10, 2021
@akien-mga
Copy link
Member

akien-mga commented May 10, 2021

@m4gr3d I guess it might still be used by some Android-derived OSes that have game-specific categories in their launcher? I know my Pocophone F1's MIUI 12 has a Game category, though none of my installed games seem to be sorted in it.

Edit: The Android TV documentation mentions it as used to sort the app among games: https://developer.android.com/training/tv/games/index.html#manifest

Unity does seem to still have the isGame setting documented in their docs for 2020.3 LTS at least: https://docs.unity3d.com/Manual/android-manifest.html

It does sound like something that shouldn't hurt to enable for those launchers which do use this metadata? Otherwise I'd advise pushing internally for getting it marked as deprecated if there's no benefit to setting it: https://developer.android.com/guide/topics/manifest/application-element#isGame

@m4gr3d
Copy link
Contributor

m4gr3d commented May 24, 2021

@akien-mga Thanks for the pointer to the Android TV documentation. It indeed sounds like it shouldn't hurt to give users the ability to set it if they want.

@m4gr3d m4gr3d reopened this May 24, 2021
@m4gr3d
Copy link
Contributor

m4gr3d commented May 24, 2021

@lucasnlm Based on @akien-mga's comment, it may be worth adding this feature, however this PR would have to be updated so that the feature is customizable by the user.
Is that something you'd feel comfortable doing? If not, feel free to close this PR and open an issue instead.

Thanks!

Copy link
Contributor

@m4gr3d m4gr3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feature should be togglable.

@lucasnlm
Copy link
Contributor Author

@m4gr3d I will try to implement it.

@akien-mga
Copy link
Member

Superseded by #50028.

@akien-mga akien-mga closed this Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants