The purpose of this project is to allow the usage of some basic functions of the Web POS while the terminal is offline. These functions mainly consist in the following:
- Being able to log in the application
- Being able to create new tickets
The application will still work offline by using the Application Cache of the browser.
How to use this feature
This feature is actually very simple to use, and no special actions of the user are really required.
If the terminal is offline, the application will automatically detect it, and perform an offline login when the user enters his credentials. In this mode, the user will only be able to create tickets.
If he tries to do any other thing, he will get a warning message explaining the situation.
If after having logged in in online mode the connection is lost, a message will be shown, and the application will automatically switch to offline mode.
If at any given point the connection returns, the application will also automatically detect it, and will prompt the user to enter his credentials again, to log in online. If this is done, all created tickets will be automatically sent to the server, and at this point the user will be able to fully use all the features of the application again.