2

I have a Chrome OS packaged app published with some installations. Given that Chrome OS now supports Android apps, I need some way to detect how many of my existing customers are using a device model that supports Android.

I browsed through the APIs and found chrome.runtime.getPlatformInfo but it doesn't respond with the device model. I'm wondering if there's a more reliable way to detect it.

andrecardoso
  • 235
  • 4
  • 11
  • 1
    Even if their chromebook supports android apps, the user may have it disabled in the settings, or it could be disabled by enterprise policy. – kzahel Jan 23 '18 at 18:39

2 Answers2

0

There is currently no API that exposes the device (board) name to JS code. There are some private/internal APIs, but people don't get access to those for normal apps published in the Chrome Web Store (CWS).

You could try and fingerprint the device by gathering various source details (such as display metrics and built in USB devices), but that'll require quite a bit of effort, and probably still not catch them all :(.

Mike Frysinger
  • 2,827
  • 1
  • 21
  • 26
0

I found this API that does exactly what I want. Unfortunately it is private.

andrecardoso
  • 235
  • 4
  • 11