This PR changes the User-Agent string sent by the client in API calls from the default to a more readable and useful format for metrics and analytics. The new format is
<App Name> has whitespaces removed, to make for easier parsing on the backend.
<Device Identifier> is of the form iPhone8,4, for example. Further converting this to the consumer-facing name, e.g. iPhone SE for the previous example, requires a nontrivial amount of additional code, and was deemed not worth the effort. See https://medium.com/ios-os-x-development/get-model-info-of-ios-devices-18bc8f32c254 for further info.
SUMMARY
This PR changes the User-Agent string sent by the client in API calls from the default to a more readable and useful format for metrics and analytics. The new format is
<App Name>/<App Version> <Device Identifier>/<iOS Version>
with the following notes:
<App Name>
has whitespaces removed, to make for easier parsing on the backend.<Device Identifier>
is of the formiPhone8,4
, for example. Further converting this to the consumer-facing name, e.g.iPhone SE
for the previous example, requires a nontrivial amount of additional code, and was deemed not worth the effort. See https://medium.com/ios-os-x-development/get-model-info-of-ios-devices-18bc8f32c254 for further info.