Troubleshooting Guide
This guide covers common issues you might encounter when integrating the MetaMap iOS SDK and their solutions.Installation Issues
CocoaPods installation fails
CocoaPods installation fails
pod install fails or shows dependency conflicts.Solutions:- Update CocoaPods to the latest version:
- Clear CocoaPods cache:
- Ensure your Podfile specifies the correct iOS version:
- Try updating your pod repository:
SDK download size too large
SDK download size too large
- As of version 3.22.5, the SDK size has been reduced from 50MB to 30MB
- As of version 3.13.2, download size was optimized to 3.66MB
- Ensure you’re using the latest version:
Build errors after installation
Build errors after installation
- Clean build folder (Shift + Cmd + K)
- Delete derived data:
- Ensure Swift version 5.7 is configured in your project
- Check minimum iOS deployment target is set to iOS 13.0 or higher
Runtime Issues
App crashes when launching MetaMap flow
App crashes when launching MetaMap flow
showMetaMapFlow.Solutions:- Verify you’ve added all required permissions to Info.plist:
- Check that clientId and flowId are valid
- Ensure MetaMapButtonResult.shared.delegate is set before calling showMetaMapFlow
- Check console logs for specific error messages
Delegate methods not being called
Delegate methods not being called
verificationSuccess or verificationCancelled callbacks are not triggered.Solutions:- Ensure you set the delegate before showing the flow:
- Verify your class conforms to
MetaMapButtonResultDelegate: - For SwiftUI, ensure MetaMapDelegateObserver is properly initialized
Camera or microphone not working
Camera or microphone not working
- Verify all required permissions are in Info.plist
- Check device settings to ensure permissions are granted
- Test on a physical device (simulator has limited camera support)
- Ensure you’re not blocking camera access in your app’s settings
- Check for conflicts with other SDKs that use camera/microphone
Verification creates duplicate entries
Verification creates duplicate entries
- This was fixed in version 3.15.2
- Update to the latest SDK version:
- Ensure you’re not calling
showMetaMapFlowmultiple times accidentally
UI and Display Issues
UI elements not displaying correctly on iPad
UI elements not displaying correctly on iPad
- Update to version 3.22.3 or later (fixed active liveness orientation capture)
- Version 3.9.0 fixed crashes on iPad
- Ensure your app supports both iPhone and iPad if needed
- Test on actual iPad devices for orientation-specific issues
Custom colors not applying
Custom colors not applying
- Use proper hex color format in metadata:
- Version 3.16.1+ supports full color customization
- Check if you’re using the correct metadata keys:
buttonColorfor button backgroundbuttonTextColorfor button text
Custom fonts not loading
Custom fonts not loading
- Ensure font files are added to your Xcode project
- Add fonts to Info.plist under “Fonts provided by application”
- Use correct font file names with extensions:
- Verify font files are included in the app target
Dark mode issues
Dark mode issues
- Dark mode support was added in version 3.10.1
- Update to version 3.22.8 for full dark mode support
- Test with device set to both light and dark appearance
Document Verification Issues
Brazilian driver's license upload fails
Brazilian driver's license upload fails
- This was fixed in version 3.22.5
- Update to the latest SDK version
- Ensure proper document type is selected in your flow configuration
Document country restriction errors
Document country restriction errors
- Version 3.18.2 fixed default country selection in restrictions
- Version 3.11.2 fixed country restriction limiting uploads
- Verify your flow configuration allows the document’s country
- Check that country restrictions are properly configured in MetaMap dashboard
PDF upload with multiple pages fails
PDF upload with multiple pages fails
- Multi-page PDF support was added in version 3.20.1
- Update to version 3.22.8 for this feature
- Ensure the PDF file size is within acceptable limits
Network and Connectivity Issues
Socket connection issues
Socket connection issues
- Version 3.11.3 fixed socket connection ping-pong issues
- Version 3.13.0 updated to Socket.io version .three
- Check network connectivity
- Verify firewall settings allow WebSocket connections
- Test on different networks (WiFi vs cellular)
IP restriction errors
IP restriction errors
- Version 3.13.0 shows IP restriction before start screen
- Version 3.12.0 fixed IP restriction issues
- Verify IP whitelist in MetaMap dashboard
- Provide clear error messaging to users
- Consider VPN usage affecting IP detection
Network error handling
Network error handling
- Version 3.8.9 added support for internet disconnect cases
- Version 3.9.5 improved server error and no internet screens
- Ensure users have stable internet connection
- Test app behavior in airplane mode
Integration-Specific Issues
Sentry conflicts with app's Sentry
Sentry conflicts with app's Sentry
- Version 3.15.2 fixed conflicts between SDK and merchant Sentry
- Version 3.18.1 updated to Sentry 8.18.0 and fixed vulnerabilities
- Use latest SDK version for best compatibility
- Configure Sentry namespacing if needed
Metadata parameters not working
Metadata parameters not working
- Ensure correct parameter names and format:
- Supported languages: “en”, “es”, “fr”, “pt”, “ru”, “tr”, “de”, “it”, “pl”, “th”
- Version 3.9.8 replaced metadata dictionary with object
Re-verification not working
Re-verification not working
- Pass identityId in metadata:
- Version 3.14.0 added re-usage feature
- Version 3.15.0 added Idemia re-usage support
- Ensure the identity exists and is in a re-verifiable state
Verification resume after interruption fails
Verification resume after interruption fails
- Version 3.22.4 added support for resuming after interruption
- Update to version 3.22.8
- Ensure proper state management in your app
- Test with phone calls and app backgrounding scenarios
Getting Additional Help
If you’re still experiencing issues after trying these solutions:- Check the GitHub issues page for similar problems
- Review the changelog for recent fixes
- Ensure you’re using the latest SDK version (3.22.8)
- Contact MetaMap support with:
- SDK version
- iOS version
- Device model
- Complete error logs
- Steps to reproduce the issue