Let’s get started:
- Download SearchQuest GPS from the App Store (iTunes)
- Run SearchQuest GPS on your iPhone (or iPod)
- Go to the ‘What to do?” screen
- Select “Access Location-Based Web Apps”
- Select “Add Location-Based App”
- Type the following URL: Http://maaap.com/api
- You should see a "For Web Developer" screen
- For every JavaScript method, we provide a test page. Check the source code of the web page for more detail information on specific API method or property.
How can a Web app access GPS location?
This project started with this simple question. Unfortunately, the iPhone software architecture has some technical limitation: It is not possible to run background process on an iPhone. Based on this fact, we developed the following solutions:I am aware that you may be disapointed by the fact that the best solution is the Hybrid version. On top of that Apple do not want that we install a second web browser on the iPhone. Therefore, we can not develop and market what I will call a "location-enabled web browser" or the mobile version of firefox.
- Link Method: use a link (searchquest://) inside your web page
http://ylocation.com/searchquest.app/API/solu1.htm- Launch Method: your web page launched from a native app
http://ylocation.com/searchquest.app/API/solu2.htm- Hybrid method: the best solution, web app inside native app
http://ylocation.com/searchquest.app/API/solu3.htm
It is for this reason, I developed WebToNative. This framework is not only about GPS location, you can also access the camera and other phone capabilities.
We posted more documentation in the file section of the WebToNative Support Group.