Select to view content in your preferred language

Mobile Application with Javascript

890
3
10-05-2011 07:39 AM
VIKRANTKRISHNA
Regular Contributor
Does anyone know what is the advantage and disadvantage of making arcgis server application for iOS using JavaScript Compact Build version along with Jquery Mobile development kit and running it on Safari , over making separate iOS application using whole different Flex API and running it as an application in iOS. I have created an webapplication using JavaScript Compact Build and Jquery and this application runs pretty well on Safari(iPad and iPhone) as well as Chrome(on Desktop), so What I am wondering is that, does this method has some disadvantage or limitations? causing people to run behind creating application for iOS.
0 Kudos
3 Replies
KellyHutchins
Esri Notable Contributor
There are definitely pros and cons to each approach (mobile web app vs native) but there are lots of great articles out there like the one below that describe the pros and cons and can help you make the decision:

http://econsultancy.com/us/blog/7832-the-fight-gets-technical-mobile-apps-vs-mobile-sites
0 Kudos
VIKRANTKRISHNA
Regular Contributor
Thanks for the article kelly. One thing is still not clear to me is that, if I use the geolocation map point method given in one of the example given on javascript resource center, and if I take my ipad out it the field, is it then going to point to the my current location or is it going to show the network server location?
0 Kudos
KellyHutchins
Esri Notable Contributor
The sample you refer to uses the Geolocation API to determine the current location. This location can come from several different sources depending on the browser and device such as information about nearby wireless access points and the ip address. The following article on html5doctor.com provides some additional detail on geolocation sources.

http://html5doctor.com/finding-your-position-with-geolocation/

Various browsers may also provide more details about how geolocation works in their browser:

http://www.mozilla.org/en-US/firefox/geolocation/

The following stack overflow question also has some good details on how various browsers determine your location.
0 Kudos