Skip to main content

otpless_headless_flutter 3.3.1 copy "otpless_headless_flutter: ^3.3.1" to clipboard
otpless_headless_flutter: ^3.3.1 copied to clipboard

Standalone SDK for Otpless Headless functionality.

3.3.1 (27th November 2026) #

Fixes #

  • iOS: response callbacks lost in apps with more than one Flutter engine. The plugin kept its method channel in a process-wide singleton, so every engine that registered the plugin (for example a background or add-to-app engine) replaced it. SDK responses such as ONETAP were then sent to the last engine to register, which has no OTPLESS callback handler, and were dropped with "method not implemented", even though authentication had succeeded natively. Each plugin instance now sends responses through its own engine's channel, and start / startOnetap rebind the native response delegate, so responses go to the engine that started the request. Android was not affected.
  • Dart: start, setResponseCallback and setDevLogging now complete when the native call does. Before, they returned immediately without waiting for the platform call, so awaiting them did not guarantee the call had reached the native side, and native errors could not be caught. The method signatures are unchanged.

Changes #

  • The wrapper-attribution token follows the bump: telemetry now reports flutter-android-3.3.1 / flutter-ios-3.3.1.
  • Example app: new "Spawn 2nd engine (re-register plugin)" button (iOS and Android) that registers the plugin on an extra headless engine, to reproduce the multi-engine setup.

No Dart API changes. Native SDK versions are unchanged (otpless-headless-sdk 2.4.0, OtplessBM 3.1.1).

3.3.0 (18th November 2026) #

Changes #

  • Android: bump otpless-headless-sdk 2.3.0 → 2.4.0. No public API change; the bridge compiles as-is. What changes for your app:
    • Play Integrity: setup now runs in the background, so SDK_READY no longer waits for it. An expired token provider (INTEGRITY_TOKEN_PROVIDER_INVALID) or a dead Play Store integrity service is recovered with one retry. When Play Integrity is not mandatory for your app, the SDK now waits up to 5 seconds (was 2) for the token before sending the intent, so the intent call can take up to 3 s longer when the token is slow.
    • Initialization: fixes an ANR and a NullPointerException (when cleanup() runs during initialize). Merchant config now recovers from error 7005 (stale state). If initialize fails before the SDK can report its result, your response callback now receives FAILED / 5003 instead of nothing or a crash.
    • Google / Facebook SDK sign-in: all sign-in parameters on the intent URI are now read, and permissions is passed through.
  • iOS: bump OtplessBM 3.0.2 → 3.1.1 in both the podspec (OtplessBM/Core) and Package.swift. No public API change. What changes for your app:
    • App Attest (iOS 14+, 3.1.0): when OTPLESS enables it for your app through the merchant config, the SDK registers an App Attest key in the background after SDK_READY and attaches an assertion to the intent request. It never delays or fails an authentication. For App Store / TestFlight builds, add the com.apple.developer.devicecheck.appattest-environment entitlement set to production; without it Apple issues development keys.
    • State refresh (3.1.0): error 7005 on the intent or merchant config call now refreshes the state and retries once, and stale Keychain state left by a previous install is cleared on first launch.
    • Request id flow (3.1.1): a request built from a backend requestId now works without a phone or email and no longer defaults to the phone channel.
  • The wrapper-attribution token follows the bump: telemetry now reports flutter-android-3.3.0 / flutter-ios-3.3.0.

No Dart API changes.

3.2.0 (16th October 2026) #

Features #

  • Option to disable OTP auto-read (Android). initialize takes a new optional config: Map<OtplessConfigKey, String> parameter, and OtplessConfigKey is exported from otpless_flutter.dart. Passing {OtplessConfigKey.disableOtpAutoRead: "true"} stops the Android SDK from registering the SMS / WhatsApp zero-tap OTP auto-read receivers for that initialize call. This is meant for SNA-only integrations. Auto-read stays on when the key is absent or its value is anything other than exactly "true", so existing integrations are unchanged. iOS has no OTP auto-read and ignores the key.
  • SIM binding monitor (Android). New registerSimBindingMonitor(), unregisterSimBindingMonitor() and setSimBindingMonitorCallback(callback), bridging the native SDK APIs of the same names. The callback receives a SimBindingState (exported from otpless_flutter.dart): enabled when a SIM binding is saved, disabled when the binding is cleared or the bound SIM is removed while the monitor is registered. Pass null to remove the callback. All three are no-ops on iOS (registerSimBindingMonitor returns false).

Changes #

  • Android: bump otpless-headless-sdk 2.0.1 → 2.3.0. The native changes between those versions are additive (removeDeviceBoundIdentity, the SIM binding monitor, a backend-opt-in INITIATE callback before ONETAP on the SNA fast-path, a backend-opt-in Play Integrity wait, and the config parameter on initialize).
  • iOS: bump OtplessBM 3.0.1 → 3.0.2 in both the podspec (OtplessBM/Core) and Package.swift. 3.0.2 is a fix release (on-demand cellular refresh, proxy telemetry) with no public API change.
  • The wrapper-attribution token follows the bump: telemetry now reports flutter-android-3.2.0 / flutter-ios-3.2.0.

No breaking Dart API changes: config is optional and defaults to empty, and the SIM binding monitor APIs are additive.

3.1.0 (5th October 2026) #

Features #

  • Swift Package Manager support. The iOS side now ships ios/otpless_headless_flutter/Package.swift, so apps that have migrated to SPM can use this plugin. Flutter does not fall back to CocoaPods for plugins without a Swift package, so on SPM-migrated projects the previous releases could not be integrated at all.
  • CocoaPods remains fully supported. The podspec and the Swift package build the same sources, so no action is needed if your app still uses CocoaPods.

Changes #

  • iOS sources moved from ios/Classes/ to ios/otpless_headless_flutter/Sources/otpless_headless_flutter/ (the layout SPM requires). s.source_files in the podspec was repointed at the same directory.
  • The Objective-C registration shim (ios/Classes/OtplessFlutterHeadless.{h,m}) was removed: SwiftPM does not accept Objective-C and Swift sources in one target, and the shim relied on the CocoaPods-generated -Swift.h umbrella header, which does not exist under SPM. The Swift class SwiftOtplessFlutterHeadless is renamed to OtplessFlutterHeadless and is now the plugin class directly, so pluginClass is unchanged and registration is unaffected on both build systems.
  • WhatsAppHandler.swift now imports Flutter explicitly. It previously picked FlutterResult up implicitly through the Objective-C umbrella header.
  • Package.swift declares the FlutterFramework dependency required by Flutter's plugin template. Verified end-to-end on Flutter 3.47.6 / Xcode 26.6: the example app runs on an iOS simulator with the plugin and OtplessBM linked through SwiftPM rather than CocoaPods.

Known limitations #

  • Under SPM the plugin depends on the whole OtplessBM product, because Swift packages have no equivalent of the OtplessBM/Core subspec. The OtplessBM/GoogleSupport and OtplessBM/FacebookSupport subspecs have no SPM equivalent: if you use OtplessChannelType.GOOGLE_SDK or FACEBOOK_SDK on an SPM project, add the Google or Facebook SDK to your app directly. CocoaPods users are unaffected.

Native SDK versions are unchanged: Android otpless-headless-sdk 2.0.1, iOS OtplessBM 3.0.1.

3.0.1 (22nd September 2026) #

Changes #

  • iOS: bump OtplessBM/Core 3.0.0 → 3.0.1.
  • iOS: the podspec s.version is now 3.0.1, matching pubspec.yaml. The 3.0.0 release published a podspec whose s.version and OtplessBM/Core pin were both 3.0.0; the 3.0.0 entry below has been corrected to reflect what actually shipped.
  • The wrapper-attribution token follows the bump: telemetry now reports platform = "otpless-headless-sdk(flutter-android-3.0.1)" on Android and platform = "otpless-headless(flutter-ios-3.0.1)" on iOS.

No Dart API changes. Android otpless-headless-sdk stays at 2.0.1.

3.0.0 (21st September 2026) #

Breaking #

  • initialize(..., timeout:) has been removed. It was never read by either native SDK and was not sent over the method channel; drop timeout: from your call site.

Features #

  • initialize(appId, sslPinning: OtplessSslPinning.enabled) opts in to SSL certificate pinning of the OTPLESS backend on both Android and iOS. Default is OtplessSslPinning.disabled, so existing integrations are unchanged. When enabled and validation fails, the SDK fails closed and the response callback receives responseType: "FAILED", statusCode: 5004, response: {"errorCode": "5004", "errorMessage": "SSL pin validation failed"}; no auth request leaves the device.
  • initialize(appId, loginUri: ...) is now honoured on both platforms (it was previously impossible to set from Dart).
  • Android: Google Play Integrity attestation ships inside otpless-headless-sdk 2.0.1. It is internal to the SDK and needs no plugin API.

Changes #

  • Android: bump otpless-headless-sdk 0.9.0 → 2.0.1.
  • iOS: bump OtplessBM/Core 2.3.2 → 3.0.0; production host is now sigma.otpless.app.
  • iOS: the response delegate is bound inside initialize (parity with Android), so a FAILED emitted before setResponseCallback is no longer dropped.
  • Dart: the response-callback dispatcher is null-safe; a native event arriving before setResponseCallback no longer throws.
  • Podspec s.version now tracks pubspec.yaml (was stuck at 0.0.1).
  • Wrapper attribution: the plugin now declares itself to the native SDKs at initialize, so backend telemetry attributes the session to the Flutter wrapper rather than to a plain native integration. The device event reports platform = "otpless-headless-sdk(flutter-android-3.0.0)" on Android and platform = "otpless-headless(flutter-ios-3.0.0)" on iOS.
  • The attribution token embeds this plugin's own version, so telemetry distinguishes both the platform and the plugin release that produced a session. It is computed in Dart from a single internal constant kept in lock-step with pubspec.yaml (a unit test fails the build if the two drift); the Kotlin and Swift bridges only forward it. It is not merchant-facing: no new Dart parameter, and the only change to the initialize method-channel payload is the internal buildPlatform key.

2.0.0 (27th July 2026) #

Breaking #

  • Renamed startBackground(callback, config) → startOnetap(callback, config). Update all Dart call sites. See README migration section.
  • Response type set grew: consumers may now receive AUTH_TERMINATED, MFA_FACTOR_COMPLETED, and (Android only) AUTO_FLOW_ACTION from the response callback.
  • Toolchain: Android consumers need Android Gradle Plugin 8.9.1+ and compileSdkVersion 36+ (transitive AndroidX requirement of otpless-headless-sdk:0.9.0).

Android #

  • Bump otpless-headless-sdk to v0.9.0.
  • New public APIs: setMfaEnabled, initSession, getActiveSession, logoutSession, startInBackground, checkSimBindingStatus, clearSimBinding, setSimBindingEnabled, closeDialogIfOpen.
  • Request-parser hardening: guards against unknown channels and empty-string setters; now accepts code, extras, requestId, deviceFingerprintMode on the start / startInBackground request map.

iOS #

  • Bump OtplessBM/Core to 2.3.2.
  • startOnetap, sendUserAuthEvent now execute on iOS (were previously no-ops).
  • New public APIs mirroring Android: setMfaEnabled, initSession, getActiveSession, logoutSession.

1.1.1 (19th Jun 2026) #

iOS #

  • [fix] SceneDelegate support in initialize root VC lookup

1.1.0 (12th Feb 2026) #

Android #

  • [fix] security exception and mutex fix
  • [fix] android sdk update 0.6.6

1.0.9 (5th Feb 2026) #

iOS #

  • [fix] OtplessBM updated to 2.0.8 for actor fix

1.0.8 (2nd Feb 2026) #

iOS #

  • [feat] Airtel and Vi Support

1.0.7 (28th Jan 2026) #

Andriod #

  • [fix] Truecaller initialization switched to io thread

1.0.6 (15th Jan 2026) #

Android #

  • Update otpless-headless-sdk to v0.6.3
  • Passkey support
  • Background auth support
  • Airtel and Vi support

1.0.5 (28th November 2025) #

Android #

  • Update otpless-headless-sdk to v0.3.8
  • Update Truecaller low memory fix

1.0.4 (29th August 2025) #

Android #

  • Updated otpless-headless-sdk to v0.3.4
  • isSdkReady support

iOS #

  • Updated OtplessBM to v2.0.0
  • isSdkReady support

1.0.3 (16th July 2025) #

Android #

  • Updated otpless-headless-sdk to v0.3.1
  • Added support for SNA only mode

iOS #

  • Updated OtplessBM to v1.1.7
  • Added support for SNA only mode

1.0.2 (3rd July 2025) #

Feature

  • truecaller support
  • android sdk update to 0.3.0
  • ios sdk update to 1.1.6

1.0.1 (16th April 2025) #

Fixes #

  • Fixed incorrect plugin channel name issue.

1.0.0 (8th April 2025) #

  • First release of Flutter Headless SDK
3
likes
160
points
1.11k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Standalone SDK for Otpless Headless functionality.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on otpless_headless_flutter

Packages that implement otpless_headless_flutter