plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Request]: [device_info_plus] add flag to AndroidDeviceInfo to indicate Android app running in Google Play Games on PC

Open ekuleshov opened this issue 2 months ago • 0 comments

Plugin

device_info_plus

Use case

Android apps/games could run on the Google Play Games on PC, i.e. on Windows. https://developer.android.com/games/playgames/overview

So, a Flutter app build for Android and distributed through Google Play store could run on Windows PC and to fully support input and other things required by Google Play Games the app may need to know if it is running in this environment.

Proposal

The request is to introduce a new flag like AndroidDeviceInfo.isGooglePlayGames (somewhat similar to IosDeviceInfo.isiOSAppOnMac). The value is a simple check:

PackageManager pm = getPackageManager();
boolean isPC = pm.hasSystemFeature("com.google.android.play.feature.HPE_EXPERIENCE")

ekuleshov avatar Oct 21 '25 21:10 ekuleshov