yushulx / flutter_twain_scanner

Flutter wrapper for Dynamsoft Service, supporting document scanning from TWAIN, WIA, ICA, SANE and eSCL scanners.
https://pub.dev/packages/flutter_twain_scanner
MIT License
1 stars 1 forks source link

scan printer on mobile issue #3

Open alikhan1999 opened 3 months ago

alikhan1999 commented 3 months ago

Integrated on flutter mobile app , there is no found a printer on mobile side ,but it is working on web. I am using this function for scanning purpose . final scanners = await dynamsoftService.getDevices(host, ScannerType.ICASCANNER |ScannerType.WIFIDIRECTSCANNER |ScannerType.TWAINSCANNER |ScannerType.TWAINX64SCANNER );

yushulx commented 3 months ago

@alikhan1999 To make mobile app work, you need to navigate to http://127.0.0.1:18625/ in a web browser to configure the host IP with your PC's LAN IP address, and then change the host value with it, keeping your mobile device and PC in the same local network. Alternatively, you can use ngrok to expose the local service to the public Internet, and then change the host value with the public URL.