androidgoogle-chrome-arc

How can my app tell if it's running in Chrome vs on an Android device?


If I use ARCWelder to port my app to Chrome, is there a way for it to know that it's running on Chrome? Maybe through BUILD.Version?


Solution

  • Quoting the documentation:

    If you need to check if your app is running on Chrome OS, look for chromium as the android.os.Build.BRAND and android.os.Build.MANUFACTURER.