I developed the same type of application for mobile devices using phonegap and jQuery Mobile and used MySQL db for the external interface of my site, which is on the node js platform, but the general idea of ββusing the API to access all functions is the same.
API call for the server to enter the system and all other operations, such as fetching data, sending data to the server, etc.
If you have an API ready on your server side, then you just need to call these APIs to do everything. First, you can call the API login function and, if successful, pass the username and password, and then return the success token with user_id, which you can save in the local mobile database. I used SQLite for mobile storage.
then for every other request I used this token for authentication and performed an operation on the server.
You can also add an automatic login feature to the application, so you donβt need to log in every time.
Naresh ramoliya
source share