👉 Custom Authorization Header Support in Android & iOS SDKs

We’re excited to introduce a new improvement to the Transifex Mobile SDKs for Android and iOS, making SDK initialization more flexible and giving developers full control over authentication headers.

:light_bulb: What’s New

Both Android and iOS SDKs now support:

  • A builder-style initialization API

  • Overriding the default Authorization HTTP header with a custom header key

  • Ensuring the Authorization header is completely omitted when a custom header is configured

This makes it easier to integrate the SDK in environments where the standard Authorization header cannot be used.


:mobile_phone: Android SDK

On Android, a new TxNative.Initializer class has been introduced.

Key updates:

  • SDK initialization is now performed using a fluent builder pattern

  • Optional configuration (including a custom authorization header key) can be set before calling init()

  • The previous TxNative.init() method is still available, but deprecated

When a custom authorization header key is specified:

  • The authentication token is sent only via the custom header

  • The default Authorization header is not included in requests


:green_apple: iOS SDK

On iOS, the SDK introduces a new TXNativeBuilder for initialization.

Key updates:

  • SDK initialization now follows a builder pattern

  • Existing initialization methods are deprecated in favor of the builder

  • The builder allows overriding the authorization HTTP header key

As with Android:

  • When a custom header is configured, the SDK does not send the Authorization header

  • Only the custom header is used for authentication


:white_check_mark: Why This Matters

These changes allow teams to:

  • Comply with strict security or networking policies

  • Avoid issues with infrastructure that restricts the Authorization header

  • Adopt a cleaner, more extensible SDK initialization flow

This enhancement provides greater flexibility while maintaining backward compatibility. Let us know what you think of this improvement in the comments below!