flutter_digilocker_aadhar_pan 1.0.1
flutter_digilocker_aadhar_pan: ^1.0.1 copied to clipboard
Flutter plugin for seamless DigiLocker Aadhar and PAN verification integration.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.1 2025-01-XX #
Fixed #
- Fixed iOS redirect detection issue where
onSuccesscallback was not being triggered - Added multiple redirect detection points for better iOS compatibility:
- Enhanced
onPageFinishedcallback with URL checking - Added
onNavigationRequestcallback for iOS navigation handling - Added
currentUrl()check for iOS-specific WebView behavior
- Enhanced
- Improved redirect URL matching with case-insensitive comparison
- Added duplicate call prevention to avoid multiple success callbacks
Technical Improvements #
- Better handling of WebView navigation events on iOS
- More robust redirect detection across different iOS WebView behaviors
- Improved error handling for URL retrieval
1.0.0 - 2025-11-19 #
Added #
- Initial release of flutter_digilocker_aadhar_pan
- DigiLocker Aadhar verification integration
- DigiLocker PAN verification integration
- WebView-based authentication flow
- Automatic token management
- Type-safe response handling
- Customizable configuration options
- Support for pre-filling PAN details
- Loading indicators and error handling
- Clean modal-based UI
- Comprehensive documentation and examples
- Support for Android and iOS platforms
Features #
- Get access token from DigiLocker API
- Generate DigiLocker verification URL
- Handle redirect after verification
- Fetch complete user verification data
- Support for multiple document types (Aadhar, PAN)
- Optional PAN name and number pre-fill
- Configurable redirect URLs
- Success and error callbacks
- Modal dialog with close button
Dependencies #
- flutter: >=3.3.0
- http: ^1.2.0
- webview_flutter: ^4.5.0
- plugin_platform_interface: ^2.0.2
Documentation #
- Complete README with usage examples
- API documentation
- Configuration guide
- Response data structure documentation
- Platform setup instructions
- Troubleshooting guide
- Security best practices
[Unreleased] #
Planned #
- Add support for more document types
- Offline verification caching
- Biometric authentication integration
- Enhanced error messages
- Unit tests and integration tests
- Performance optimizations