onfido-ios-sdk
onfido-ios-sdk copied to clipboard
Can't cancel out of Onfido flow
What was the expected behaviour?
- Once flow is started, the user should be able to back out/cancel the flow.
What happened instead?
- Tapping the back arrow does nothing.
- Completion handler for the flow is also not called.
Version info:
- Cocoapods (if applicable): No Cocoapods. XCFramework used.
- Onfido SDK (Debug/Release): 25.1.0 (Release)
- iOS: 15.5
- Xcode: 13.4
- Device/Simulator: Simulator
- Device/Simulator language: English/USA
Integration configuration:
ONFlowConfigBuilder* configBuilder = [ONFlowConfig builder];
[configBuilder withSdkToken:@"valid token here" expireHandler:^(void (^ handler)(NSString * expireHandler))
{
// Token refresh code here
}];
Builder* faceVariantBuilder = [ONFaceStepVariantConfig builder];
[faceVariantBuilder withVideoCaptureWithConfig:NULL];
ONFaceStepVariantConfig* variantConfig = [faceVariantBuilder buildAndReturnError:&configError];
// variantConfig error handling here
[configBuilder withFaceStepOfVariant:variantConfig];
[configBuilder withCustomLocalizationWithTableName:@"Onfido"];
NSError* documentVariantError = nil;
ONDocumentTypeVariantConfig* documentVariantConfig = nil;
DocumentConfigBuilder* documentVariantBuilder = [ONDocumentTypeVariantConfig builder];
[documentVariantBuilder withNationalIdentityCardWithConfig:[[NationalIdentityConfiguration alloc] initWithDocumentFormat:DocumentFormatCard country:@"NLD"]];
documentVariantConfig = [documentVariantBuilder buildAndReturnError:&documentVariantError];
// documentVariantConfig error handling here
if(documentVariantConfig != nil)
{
[configBuilder withDocumentStepOfType:documentVariantConfig];
}
ONFlowConfig* config = [configBuilder buildAndReturnError:&configError];
if(configError == NULL)
{
ONFlow* onFlow = [[ONFlow alloc] initWithFlowConfiguration:config];
// Flow continues...
}
Steps to reproduce:
Just start the flow and try to cancel out of it on the first screen by tapping the back arrow.