I have an iPad app created using Sencha Touch for sales representatives. The problem is that some of the users sell in bungs and do not have Internet access. Therefore, we want to create a "native" iOS application that will allow them to use the application even without Internet access. I hope to use PhoneGap to use a lot of current code.
The problem that I encountered while I plan is authentication.
Currently, the application authenticates users with a remote database using PHP. With the native PhoneGap application, is there a way to authenticate locally when the user does not have Internet access? Can I make the local option safe , and if so, how? Is it as simple as authenticating an XML or JSON file in my PhoneGap project?
Note. I know that this is perceived as completely ignorant for those who understand this, and I apologize. I have never worked with anything other than pure web technologies, where the client side and the server side are clear to me. Did not do anything with compiled languages.
I do not understand how safe JS (or even it is) when using PhoneGap to package it as a native application. Is it transparent like on the Internet?
Can a malicious user with the application installed on the phone see my JavaScript, etc.?
source
share