6
I’m developing an app mobile which should contain the same content of the website, and it is necessary that the same database (Mysql) used by the site is also used by the mobile application.
I believe creating a direct app connection mobile (Android) to the remote database would be a security breach as anyone could open the apk and discover the connection data, so it would be necessary to create a Webservice exclusively for this data transfer, but also in my concept would have the same defect: security, because anyone could access it and send or receive information.
What is your best technique for transferring data between a Webservice and an application mobile whereas this webservice must be "closed" to external and not authenticated access.
What is the language of the service code on the server?
– Ricardo
PHP - Laravel 5.1
– Rafael Alexandre
Search Cordova Phonegap, the learning curve is smaller and can be used javascript.
– RBoschini
@Rboschini, I believe you have misunderstood, I am not asking how to develop a mobile application, but how to create a web service to provide a communication between the application and the force database secure and authenticated.
– Rafael Alexandre
Sorry, buddy, I really got it wrong. But about consuming webservice safely, I would do User’s Digest method and my Ws responding in json. The server provides a token and you can consume the data while this token is valid, same as the facebook API.
– RBoschini