I am building cross paltfom xamrin forms app which scanning barcodes using ZXing.Net.Mobile.Forms.
Now, I need to store scanning data in Json file if there is no wi-fi or Internet on devices.
- for this How do i create RESTful web services to detect, read, and generate 1D and 2D barcode in images by using JSON interface for Xamarin app
Naimish MakwanaPosted Jan 30, 2023, 8:02 AM
Hi Meggy,
If your application is not connected with the internet, then you can not use RESTful service. As it is deployed on somewhere on server which require internet connection.
For the solution. If the device is offline, then you can temporarily store your data into mobile storage and once the application is connected to internet than you can upload your data to server and then delete the local store files.
Thanks
Aravind GovindarajPosted Jan 29, 2023, 9:42 PM
There is no difference in creation of offline application. Only the thing is when u need to sync that into your online sever. Please refer the architecture for the same
https://www.bigthinkcode.com/insights/offline-first-application