Here’s a step-by-step guide to implement PingOne Persona Verification on a mobile app (iOS/Android). This assumes you’re a developer integrating identity verification into your mobile application.
Use a WebView to load the PingOne hosted verification UI.
Alternatively, use a third-party HTTP client (e.g., Retrofit) to call the PingOne Verify API directly.
For iOS:
Add Permissions to Info.plist:
<key>NSCameraUsageDescription</key>
<string>We need access to your camera for identity verification.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>We need access to your photos to upload documents.</string>
Session Expiry: Handle expired sessions and refresh tokens appropriately.
Example Code Snippets
Android (Hosted UI):
val verifyUrl = "https://auth.pingone.com/$environmentId/as/verify?client_id=$clientId&redirect_uri=myapp://callback&response_type=code&scope=openid&user_hint=$userId"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(verifyUrl))
startActivity(intent)
iOS (WKWebView):
import WebKit
let webView = WKWebView(frame: self.view.frame)
let url = URL(string: "https://auth.pingone.com/\(environmentId)/as/verify?client_id=\(clientId)&redirect_uri=myapp://callback&response_type=code&scope=openid&user_hint=\(userId)")!
webView.load(URLRequest(url: url))
self.view.addSubview(webView)