title: Building a native mobile application - based on a PHP web-app
body: <p>I have had a PHP application developed. I want to use phonegap.com or a similar approach to develop native applications based on the same MySQL database. In other words, connect the mobile applications with the web one. </p>
  
  <p>It needs to do one or two things differently. Firstly, use the native GPS features to determine where a user is - I'm guessing this can just be done via HTML5? </p>
  
  <p>Secondly, send push notifications whenever the web-application user receives a notification. </p>
  
  <p>All of the information is already there, on the MySQL database, and everything apart from the two features above function properly. </p>
  
  <p>I'm am currently having an API developed for everything on the web-application - making it API-centric. In my head, it will be easy to connect the two versions via the API. </p>
  
  <p>For example, a user signs up on the web application. He is then offered to iphone app for download.</p>
  
  <p>Is it possible to get him to log-in with the same via the iPhone. On the other side, is it possible for him to search the database, via the iphone, and "add a new friend" - making the connection of the two users in the friends table - in that, the friend is also a friend on the web-application?</p>
  
  <p>I've been reading a lot on all of the available options and am still very confused! Any help would be very helpful.</p>