Open GoogleCodeExporter opened 8 years ago
Hi John,
I found one article at
http://mobileorchard.com/phonegap-use-the-iphone-sdks-features-from-html-and-jav
ascript/ .
It seems that it's doable to call native objecttive c code from javascript.
Thanks,
Cheng
Original comment by zhangyon...@gmail.com
on 26 Nov 2010 at 4:08
John,
Please let me know your plan so that I could have some idea about our release
plan.
Thanks,
Cheng
Original comment by zhangyon...@gmail.com
on 27 Nov 2010 at 8:47
Your choices is either the standard location service (e.g.
startUpdatingLocation, for which you can specify the desiredAccuracy), or the
low-power significant change service (e.g.,
startMonitoringSignificantLocationChanges). But you generally don't specify
location services based upon hardware, but rather on the basis of your app's
functional needs. Use the standard service if you need an accurate location,
and try using the significant change service if you don't need the same level
of precision.
See the Location Awareness Guide for more information and Reference for mobile
application development resource:
http://www.agileinfoways.com/technical-expertise/mobile-applications-development
/iphone/
But if you need a cross-platform; here you go! This small javascript library is
cross-platform and supports all modern smartphones out of the box:
http://code.google.com/p/geo-location-javascript/
Here is how you use it:
//determine if the handset has client side geo location capabilities
if(geo_position_js.init()){
geo_position_js.getCurrentPosition(success_callback,error_callback);
}else{
alert("Functionality not available");
}
Original comment by naresh.r...@agileinfoways.com
on 30 May 2014 at 11:57
Original issue reported on code.google.com by
zhangyon...@gmail.com
on 22 Nov 2010 at 4:50