Hello!

We are getting closer to a general release of the Wikipedia Android
and iOS apps, and I think we should standardize on a User-Agent
format. The old app just appended an identifier in front of the
phone's default UA[1] but I think we can do better, to avoid privacy
concerns[2].

How about:

WikipediaApp/<version> <OS>/<form-factor>/<version>

This gives us all the info we need (App version, OS, Form Factor
(Tablet / Phone) and OS version) without giving away too much. It is
also fairly simple to construct and parse.

For the latest alpha, my Nexus 4 would generate

WikipediaApp/32 Android/Phone/4.4

While an iOS device might generate

WkipediaApp/2.0 iOS/Phone/7.1

form-factor would just be Phone|Tablet for now, and can be expanded
later if necessary.

Thoughts?

[1]: https://www.mediawiki.org/wiki/Mobile/User_agents#Apps
[2]: https://www.mediawiki.org/wiki/EventLogging/UserAgentSanitization
-- 
Yuvi Panda T
http://yuvi.in/blog

_______________________________________________
Mobile-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mobile-l

Reply via email to