2

Some users are installing an Android app I've worked on in their Chromebooks. The app is not working properly and the users are blaming the app instead of the fact that Android support in their Chromebooks is still in beta.

Is there a parameter in the manifest or configuration in Play Store to prevent an Android app to be installed in Chrome OS?

This is not a duplicate of this other question. I want to prevent installation, not detecting Chrome OS once it is already running.

Pier
  • 10,298
  • 17
  • 67
  • 113
  • 1
    Possible duplicate of [How to detect programmatically if "Android App" is running in chrome book or in Android phone](https://stackoverflow.com/questions/39784415/how-to-detect-programmatically-if-android-app-is-running-in-chrome-book-or-in) – Martin Marconcini Oct 03 '17 at 03:21
  • Android support for Chromebooks is in the stable channel and no longer in beta. It is very much your app that is broken at this point. – ianhanniballake Oct 03 '17 at 03:27
  • That is incorrect @ianhanniballake as you can see it depends on the device https://www.chromium.org/chromium-os/chrome-os-systems-supporting-android-apps – Pier Oct 03 '17 at 03:32
  • @MartinMarconcini it is not a duplicate since I want to prevent installation, not detect Chrome OS once it's already running. – Pier Oct 03 '17 at 03:33
  • @Pier - oh, and your app **only** doesn't work on devices in the beta channel? And you've confirmed that they work on every Chromebook on the stable channel? And you've [filed a bug against Chrome](www.crbug.com) for each specific device that your app doesn't work on? – ianhanniballake Oct 03 '17 at 03:35
  • @ianhanniballake My app doesn't crash. The web view is acting erratically. Yes my users have only one model since this is a school and all users have the same model. You are assuming too many things. – Pier Oct 03 '17 at 03:35
  • There is nothing in the manifest that you can specify that bans Chrome OS devices uniquely. Certain `` elements, such as one for `android.software.app_widget`, may have the effect of banning your app from Chrome OS devices, but it may ban your app from other devices as well. – CommonsWare Oct 03 '17 at 11:09
  • Until the play store offers the option, I guess you’re out of luck :/ – Martin Marconcini Oct 04 '17 at 18:29

1 Answers1

0

My app wasn't available on Chromebook by accident. To find out why I turned on the Chrome OS lint in Android Studio. It's in preferences->editor->inspections.

After turning it on an error showed up in AndroidManifest.xml on this line: <uses-permission android:name="android.permission.CAMERA"/>

Apparently I had to add some uses-feature tags. So see if you can find something that causes an error only when the Chrome OS lint is enabled.

Janneman
  • 1,093
  • 15
  • 23