Skip to content

skipApiSubmission is not used in SmileIDDocumentVerification on Android #207

@danagbemava

Description

@danagbemava

I am using the SmileIDDocumentVerification widget to perform some document verification since it includes the selfie flow as well.
I need to capture the data from the widget and forward that in a request to my application's api for some extra processing. When I test on iOS
iOS, the skipApiSubmission value is used and I'm able to get the data to forward to my api. However, on android, this is not the case. It appears that the request is still sent to the smile api on android even though, I have specified it not to. I checked the source and found out that the property is not part of the creation params on the android side. The links are below

This should work, at least, according to the documentation https://docs.usesmileid.com/integration-options/mobile/products/document-verification#skipapisubmission

skipApiSubmission: args["skipApiSubmission"] as? Bool ?? false,

SmileID.DocumentVerification(
countryCode = args["countryCode"] as String,
documentType = args["documentType"] as? String,
idAspectRatio = (args["idAspectRatio"] as Double?)?.toFloat(),
captureBothSides = args["captureBothSides"] as? Boolean ?: true,
bypassSelfieCaptureWithFile =
(args["bypassSelfieCaptureWithFile"] as? String)?.let {
File(it)
},
userId = args["userId"] as? String ?: randomUserId(),
jobId = args["jobId"] as? String ?: randomJobId(),
autoCaptureTimeout = (args["autoCaptureTimeout"] as? Int)?.toLong()?.milliseconds
?: 10.seconds,
autoCapture = (args["autoCapture"] as? String)?.lowercase()?.let { input ->
AutoCapture.entries.firstOrNull { it.name.lowercase() == input }
} ?: AutoCapture.AutoCapture,
allowNewEnroll = args["allowNewEnroll"] as? Boolean ?: false,
showAttribution = args["showAttribution"] as? Boolean ?: true,
allowAgentMode = args["allowAgentMode"] as? Boolean ?: false,
allowGalleryUpload = args["allowGalleryUpload"] as? Boolean ?: false,
showInstructions = args["showInstructions"] as? Boolean ?: true,
useStrictMode = args["useStrictMode"] as? Boolean ?: false,
extraPartnerParams = extraPartnerParams.toImmutableMap(),

I'm using smile_id: ^11.2.0 and flutter 3.37.0-0.0.pre on the beta channel

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions