aws / aws-sdk-mobile-analytics-js

Amazon Mobile Analytics JavaScript SDK
Apache License 2.0
82 stars 38 forks source link

Valid values for platform parameter #28

Open lmichelbacher opened 6 years ago

lmichelbacher commented 6 years ago

The list of valid options for platform in the SDK doc/code comment differs from the list shown in the dashboard:

| SDK doc      | Dashboard     |
|--------------+---------------|
| Android      | Android       |
| iPhoneOS     | iOS           |
| WindowsPhone | Windows Phone |
| Blackberry   | Blackberry    |
| Windows      | Windows       |
| MacOS        | Mac           |
| Linux        | Linux         |
| --           | Fire OS       |
| --           | Other         |

The docs say

if device details are not specified Amazon Mobile Analytics will make best efforts to determine these values based on the User-Agent header value

Could you point me to the code of this heuristic? I might be missing something but a grep on the codebase for some of the valid platform values doesn't give any results (except in tests).