Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Add application name to user agent. #113

@bdiesel

Description

@bdiesel

Is your feature request related to a problem? Please describe.
I cannot figure out how to override the default user-agent for iOS.

Describe the solution you'd like
I would like to extend the current user agent something as something along the format of / CFNetwork/ Darwin/

Describe alternatives you've considered
In android I can set a system property to append my application name to the user-agent string. In iOS it looks like UrlSession.shared is not configurable. I tired overriding user-agent as header and that wasn't effective. I then tried changing the UrlSession from shared to default which allowed me to pass is a then set the user-agent using a httpAdditionalHeaders on URLSessionConfiguration

Additional context
If I were to create a pr to add method to configure the User-Agent would you consider adding it to the projecT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions