Skip to content

User-Agent header missing in Release builds #254

@tejaswiu

Description

@tejaswiu

Describe the bug?

When using the okta-mobile-swift SDK, network requests made from Release builds do not include the User-Agent header.

In Debug builds, the User-Agent header is included as expected.

What is expected to happen?

All Okta SDK network requests should include a User-Agent header in both Debug and Release configurations, for example:

User-Agent: okta-authfoundation-swift/2.1.1 iOS/18.1 Device/arm64

What is the actual behavior?

Debug builds:
User-Agent header is present ✅

Release builds:
User-Agent header is missing ❌

Reproduction Steps?

Run the SDK login flow in a Debug build → capture request headers → User-Agent is present.

Run the same flow in a Release/TestFlight build → capture request headers → User-Agent is missing.

Additional Information?

No response

SDK Version(s)

2.1.1

Build Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions