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.
What’s New
Both Android and iOS SDKs now support:
-
A builder-style initialization API
-
Overriding the default
AuthorizationHTTP header with a custom header key -
Ensuring the
Authorizationheader 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.
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
Authorizationheader is not included in requests
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
Authorizationheader -
Only the custom header is used for authentication
Why This Matters
These changes allow teams to:
-
Comply with strict security or networking policies
-
Avoid issues with infrastructure that restricts the
Authorizationheader -
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!