Description
The Attribution API includes a call to action prompting users to download the app. Today, all call to action values are statically populated, with the Google Play store as a default. Moving forward, we would like to return the appropriate link, based on the user's mobile operating system.
Conditions of acceptance
- When iOS, return the Apple App Store link:
- When Android OS is present, return the Google Play store link:
- If the OS is not mobile or cannot be detected, return:
- https://www.wikipedia.org/ --> If possible, link directly to the "Download Wikipedia for Android or iOS" section as an anchor so that the page is pre-scrolled, especially in mobile views; this is currently blocked by the lack of id (owning team discussions pending/not sure who actually owns it)
Implementation notes
- Mobile operating system is included by default in browser user-agents.
- Requests coming in from Enterprise (or other stand-alone apps that are making direct requests) will not include the operating system in the UA.
- There is currently no dedicated app download page; instead, it links to a less-than-ideal wiki page with more context about the official and unofficial apps: https://en.wikipedia.org/wiki/List_of_Wikipedia_mobile_apps
- T419775: Add Special:MobileAppRedirect to MobileApp extension for app store redirection will likely solve our problems --> Suggest waiting until this is done