-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent PersonaInlineNavigationState and duplicate delegate calls in PersonInlineViewController #8
Comments
hey sorry for slow response. I'll write a quick sample implementation in our public demo app.
this sounds like it might be a leaked handler? I can test though.
to be honest, you are the first to attempt to integrate with it 😅 I can help you work out the issues with it and it should be fine to use. |
ok I'm going to push some fixes out soon. the main issue is a race between https://developer.apple.com/documentation/uikit/uinavigationcontroller/setviewcontrollers(_:animated:) and https://developer.apple.com/documentation/uikit/uinavigationcontroller/topviewcontroller. it turns out topViewController depends on when the animation completes (even though viewControllers has already been changed). additionally there's some padding issues when using inline mode that I'm going to correct.
this is actually expected after testing, reason being is we first navigate to a loading view controller then we navigate to the previous step. because our flow is dynamic, the server determines the where the flow goes when the user decides to go back, so we need a loading screen while we make a network request. when navigating forward, we usually keep the loading state on the same screen (this doesn't work as well for back buttons). |
I understand. I believe that if the inline feature can be used, we can create a more seamless identity verification flow within our app. Currently, I don't have control over the screen when the process is completed, canceled, or encounters an error, which feels a bit unnatural. I hope the inline feature stabilizes soon. Thanks |
hello, sorry I wasn't able to follow up sooner. We published a fix for the duplicate state issue today in v2.25.2. Additionally, I've implemented an example project that showcases how to use inline mode persona-id/persona-ios-sdk@main...jacob/inline-example |
Hello again 😅
I’m currently integrating
PersonInlineViewController
into my app flow because I need inline functionality.Following my previous report, the access control of the
PersonaInlineNavigationState
properties was updated, allowing me to adjust the navigation bar button items in myUINavigationController
. However, I’ve encountered an issue where thePersonaInlineNavigationState
returned by the delegate method behaves inconsistently.In the attached video, when navigating back from the Upload Photo ID screen to the Country Selection screen, the
PersonaInlineNavigationState
returned by the delegate method is irregular. I expectbackButtonEnabled
to betrue
, but it is often returned asfalse
. Occasionally, it does returntrue
as expected, but only sporadically.Additionally, even though I only call the back method once, the delegate method is sometimes called twice unexpectedly.
I have attached a video demonstrating the issue.
Should the inline flow be avoided for now?
Thank you for looking into this!
The text was updated successfully, but these errors were encountered: