otpless_headless_flutter 3.3.1
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
ONETAPwere 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, andstart/startOnetaprebind the native response delegate, so responses go to the engine that started the request. Android was not affected. - Dart:
start,setResponseCallbackandsetDevLoggingnow 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-sdk2.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_READYno 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(whencleanup()runs duringinitialize). Merchant config now recovers from error7005(stale state). Ifinitializefails before the SDK can report its result, your response callback now receivesFAILED/5003instead of nothing or a crash. - Google / Facebook SDK sign-in: all sign-in parameters on the intent URI are now read, and
permissionsis passed through.
- Play Integrity: setup now runs in the background, so
- iOS: bump
OtplessBM3.0.2→3.1.1in both the podspec (OtplessBM/Core) andPackage.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_READYand attaches an assertion to the intent request. It never delays or fails an authentication. For App Store / TestFlight builds, add thecom.apple.developer.devicecheck.appattest-environmententitlement set toproduction; without it Apple issues development keys. - State refresh (3.1.0): error
7005on 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
requestIdnow works without a phone or email and no longer defaults to the phone channel.
- 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
- 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).
initializetakes a new optionalconfig: Map<OtplessConfigKey, String>parameter, andOtplessConfigKeyis exported fromotpless_flutter.dart. Passing{OtplessConfigKey.disableOtpAutoRead: "true"}stops the Android SDK from registering the SMS / WhatsApp zero-tap OTP auto-read receivers for thatinitializecall. 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()andsetSimBindingMonitorCallback(callback), bridging the native SDK APIs of the same names. The callback receives aSimBindingState(exported fromotpless_flutter.dart):enabledwhen a SIM binding is saved,disabledwhen the binding is cleared or the bound SIM is removed while the monitor is registered. Passnullto remove the callback. All three are no-ops on iOS (registerSimBindingMonitorreturnsfalse).
Changes #
- Android: bump
otpless-headless-sdk2.0.1→2.3.0. The native changes between those versions are additive (removeDeviceBoundIdentity, the SIM binding monitor, a backend-opt-inINITIATEcallback beforeONETAPon the SNA fast-path, a backend-opt-in Play Integrity wait, and theconfigparameter oninitialize). - iOS: bump
OtplessBM3.0.1→3.0.2in both the podspec (OtplessBM/Core) andPackage.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/toios/otpless_headless_flutter/Sources/otpless_headless_flutter/(the layout SPM requires).s.source_filesin 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.humbrella header, which does not exist under SPM. The Swift classSwiftOtplessFlutterHeadlessis renamed toOtplessFlutterHeadlessand is now the plugin class directly, sopluginClassis unchanged and registration is unaffected on both build systems. WhatsAppHandler.swiftnow importsFlutterexplicitly. It previously pickedFlutterResultup implicitly through the Objective-C umbrella header.Package.swiftdeclares theFlutterFrameworkdependency 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 andOtplessBMlinked through SwiftPM rather than CocoaPods.
Known limitations #
- Under SPM the plugin depends on the whole
OtplessBMproduct, because Swift packages have no equivalent of theOtplessBM/Coresubspec. TheOtplessBM/GoogleSupportandOtplessBM/FacebookSupportsubspecs have no SPM equivalent: if you useOtplessChannelType.GOOGLE_SDKorFACEBOOK_SDKon 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/Core3.0.0→3.0.1. - iOS: the podspec
s.versionis now3.0.1, matchingpubspec.yaml. The3.0.0release published a podspec whoses.versionandOtplessBM/Corepin were both3.0.0; the3.0.0entry 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 andplatform = "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; droptimeout: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 isOtplessSslPinning.disabled, so existing integrations are unchanged. When enabled and validation fails, the SDK fails closed and the response callback receivesresponseType: "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-sdk0.9.0→2.0.1. - iOS: bump
OtplessBM/Core2.3.2→3.0.0; production host is nowsigma.otpless.app. - iOS: the response delegate is bound inside
initialize(parity with Android), so aFAILEDemitted beforesetResponseCallbackis no longer dropped. - Dart: the response-callback dispatcher is null-safe; a native event arriving before
setResponseCallbackno longer throws. - Podspec
s.versionnow trackspubspec.yaml(was stuck at0.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 reportsplatform = "otpless-headless-sdk(flutter-android-3.0.0)"on Android andplatform = "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 theinitializemethod-channel payload is the internalbuildPlatformkey.
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_ACTIONfrom the response callback. - Toolchain: Android consumers need Android Gradle Plugin 8.9.1+ and
compileSdkVersion36+ (transitive AndroidX requirement ofotpless-headless-sdk:0.9.0).
Android #
- Bump
otpless-headless-sdktov0.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,deviceFingerprintModeon thestart/startInBackgroundrequest map.
iOS #
- Bump
OtplessBM/Coreto2.3.2. startOnetap,sendUserAuthEventnow execute on iOS (were previously no-ops).- New public APIs mirroring Android:
setMfaEnabled,initSession,getActiveSession,logoutSession.
1.1.0 (12th Feb 2026) #
Android #
- [fix] security exception and mutex fix
- [fix] android sdk update 0.6.6
1.0.6 (15th Jan 2026) #
Android #
- Update
otpless-headless-sdktov0.6.3 - Passkey support
- Background auth support
- Airtel and Vi support
1.0.5 (28th November 2025) #
Android #
- Update
otpless-headless-sdktov0.3.8 - Update Truecaller low memory fix
1.0.4 (29th August 2025) #
1.0.3 (16th July 2025) #
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.0 (8th April 2025) #
- First release of
Flutter Headless SDK