Skip to content

Expose X_IS_MOBILE_AGENTS header in the app #10364

@muffinresearch

Description

@muffinresearch

A header X_IS_MOBILE_AGENTS is sent to the mobile app via nginx [1]. This can be used to do different things based on the user's preferences or the UA causing them to get the mobile site.

This should be exposed to the app in a generic way so that decisions can be made in components to tune the UX to suit mobile or desktop if not present.

This should be set both in the case of the mamo cookie being set and if the mamo cookie is not present and it's a mobile UA.

The first step would be to set something up without relying on it so that it can be tested. We'll also need a good process for emulating this in development too.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1361323

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions