QR Manutec is an offline-first barcode (all barcodes supported, not only QR) archive and server sync app.
You can use this app for tracking purposes, as every scan is geolocalized and timestamped.
Theres a CVS export method or a simple but more efficient client/server procedure to make sure that no scan are lost, and everything is taken to your remote server.
Scans can be collected offline, and the app will try to synch the scan list in background, you dont have to leave the app open.
Every scan is associated to an unique code, so to implement the synch function you have to create two distinct functions, a "check" and a "send".
The check and send methods both use the standard POST function, passing all the values to the server, as a normal internet form would do.
From version 1.1.1 you can export the data via email, as a CVS attachment.
You have to enable the "Advanced features" in the settings to see the export button.
There is also an auto delete function where you can set to enable auto delete and set the number of tolerance days. Only the scan already in synch will be deleted.
From your web server side, you can implement the CHECK function as the following guidelines, to make it work with the app:
- client side it will call the check function for every scan with a POST, passing the unique scan identifier
- your server has to query its database, search for that unique value, and i found should send back a string with this pattern: "CHECK:"+unique id+"|"+long description+"&"+short description (the icon in the app will change accordingly)
- in case the server wants to delete the scan, it should reply with this pattern: "CHECK:"+unique id+"|"+"DELETE" (the icon in the app will change accordingly)
- in case the user click the "Cancel Scan", in the send post there will be a field note with the text: ASKDEL, in this case, if the server responds with: "ASKDEL:"+unique id+"|"+"&", the scan will be deleted in the client (the icon in the app will change accordingly)
- if the server replies with this pattern: "NOTE:"+unique id+"|"+"&", will mark the scan as there are notes (the icon in the app will change accordingly)