The platform will use the User-Agent or X-Algolia-Agent to try and identify the platform making the request(s):
- If the
User-Agentheader value matches the regex that suggests it is a mobile device (i.e. phone, tablet, etc), the platform will return mobile. - If the
X-Algolia-Agentmatches the valueinsights-iosorinsights-android, the platform will return mobile. - If there isn't a match, but the event has
User-Agent, the platform returns desktop.