Migrate from iOS SDK v1 to v2
v1 is deprecated
As of December 31, 2022, the v1 SDK and Legacy Templates are considered deprecated.
iOS SDK v2 brings support for Dynamic Flow Templates, which represent the next generation of Persona’s inquiry flow. Dynamic Flow Templates allow for greater flexibility in data collection by allowing custom UIs and collection fields.
Dynamic Flow Templates support versioning and fully custom, component-based views. If you are an existing customer and are interested in using Dynamic Flow Templates, please contact us or talk to your CSM.
Am I using Dynamic Flow Templates?
If your template ID starts with tmpl_
, then you are using the old Template and should use the iOS SDK v1 Integration Guide.
If your template ID starts with itmpl_
, then you are using the new Dynamic Flow Template and must use iOS SDK v2 Integration Guide.
I am an existing customer using iOS SDK v1. Do I need to migrate?
You must use iOS SDK v2 if you are using Dynamic Flow Templates. Inquiries created via Dynamic Flow Templates will not work properly with iOS SDK v1.
Existing users who are not using Dynamic Flow Templates will not need to migrate to iOS SDK v2, and iOS SDK v1 will continue working for the immediate future. However, we encourage using the latest version whenever possible to take advantage of improvements and bug fixes.
If you have a hard reliance on removed features, but want or need to use Dynamic Flow Templates, please contact us or talk to your CSM for a migration path.
What do I need to do to migrate to iOS SDK v2 API?
The following lists breaking changes in the 2.x version of our SDK.
Updated package name
The Inquiry iOS SDK v2 is a now an entirely new package and module. You can safely load v1 and v2 concurrently if you require a phased rollout to upgrade to Dynamic Flow.
Swift Package Manager
The Inquiry iOS SDK v2 lives at: https://github.com/persona-id/inquiry-ios-2.git.
Cocoapods
The Inquiry iOS SDK v2 pod is now named PersonaInquirySDK2
update your podfile accordingly.
Updated InquiryDelegate
Before
After
Full list of breaking changes
What’s new in iOS SDK v2 API?
View an example migration from SDK v1.1.18 to v2.0.1
Click here
to view an example migration in our public demo app.