Can I get the Iphone/Android GPS location using the Corona SDK? - iphone

Can I get the Iphone/Android GPS location using the Corona SDK? I want to build an app and I am considering Corona, however I am unsure about whether it can access native features of the iphone and android.
I'm a bit confused as:
http://www.anscamobile.com/corona/faq/#who_is
: states :
Is there a way to call the native OS or link to an external library from Corona?
When you work with Corona, you can only access libraries written in Lua and limited to the features currently supported by the Corona SDK. You cannot link to libraries outside of Lua or access the iOS or Android APIs.
That said, we are constantly extending Corona's APIs to add new features and we welcome user input to guide future development. If you'd like to make suggestions on what we should add next, post it on our Features and Roadmap discussion forum.

Their website's home page is pretty clear: http://www.anscamobile.com/corona/
Native device features.
Use native iOS and Android features like multitouch, GPS, accelerometer, camera, Google Maps, WebKit, software keyboards, and more — it’s all available in Corona. Access social networks like Facebook and Openfeint and services like mobile analytics, with much more coming soon!

Related

Is there way to use smartphone camera in PhoneJS?

I am trying to build test app with PhoneJS for Android. But I can not find a way how to use a camera.
Is it possible at all? Or better switch to PhoneGap?
From the Welcome to PhoneJS! article:
With Apache Cordova (or Adobe PhoneGap) you have the capability to compile those apps to real mobile apps that can access the native platform (the camera, accelerometer, GPS, etc)
PhoneJS does not have its own interface to the device hardware, but encourages the developer to use Cordova API. So the answer is: use PhoneGap to access the Camera.

Can I use third party PhoneGap plugin on a web page using iOS Safari browser?

I am developing an application targeted only for iOS device(for now) using PhoneGap library and HTML5. This application is going to be only a web page accessed through iOS Safari browser. I am going to use certain features like accessing accelerometer, geolocation, contacts etc of iOS device using PhoneGap library.
Will I get access to all these features without installing anything on the device.
I want to understand how does PhoneGap get access to native features
of the device by just using JavaScript only?
I see there are several useful plugins written for PhoneGap library.
Can I simply use those plugins(js files) into my page without
installing anything on the device? E.g PhoneGap ChildBrowser plugin?
Will I get access to all these features without installing anything on the device.
You will have to build as a native ios app and install it to the device.
I want to understand how does PhoneGap get access to native features of the device by just using JavaScript only?
Phonegap provides a Javascript interface to access hardware features which are actually Objective-C functions. If you look at Phonegap source you'll see a lot of Objective-C code. So it's not only Javascript.
I see there are several useful plugins written for PhoneGap library. Can I simply use those plugins(js files) into my page without installing anything on the device? E.g PhoneGap ChildBrowser plugin?
No. They have to be inside an iOS app to be able to work.
It seems like what your after is a way to access the features of an APP only through the browser.
You can access some things using HTML5 e.g.:
Geo location http://html5demos.com/geo
Accelerometer http://menscher.com/teaching/woaa/examples/html5_accelerometer.html
Video Embedding http://www.w3schools.com/html5/html5_video.asp

difference between HTML5 and native iOS aps on iPhone

Could somebody list some things that you can do using native iPhone/iPad development but you can't using HTML5? I want to understand for what kind of apps is HTML5 usefull. I like it because it is an open technology which you can reuse to target other mobiles like android. I remember Steve Jobs said HTML5 is the future but I want to understand hat are it's limitations
The main difference I guess is that with an HTML5 app you don't have access to the native APIs and access to onboard devices (like the accelerometer, camera, etc.).
If you use something like Phonegap though you can have the best of both worlds.

How to gain direct access to the hardware capabilities of mobile devices from mobile browsers

We are developing web browser application for mobile phones and I am trying to figure out a way that I can gain access to the camera and take a photo and then upload it to the internet. But so far what I was suggested is to use phonegap and create native application. Phonegap is fine but it is not what I am looking for because my client wants to design forms and these html forms somehow will be able to trigger the camera and take photo and upload it to a server. Do you think developing a native API for every platform and having access to its functions from the web browsers is possible? What your suggestion would be?
(Note: My customer only want application that can run on mobile web browsers no native application runs on I-Phone, windows mobile, Blackberry and Android)
Thanks a lot...
Web apps (not wrapped in native code as Kumar details) cannot access all device hardware and sensors. Location support is available on iOS and Android, but camera access is only available on Android (via JavaScript). Similarly, device motion APIs are not accessible on Android, but are on iOS.
As you can see, support is sketchy and if you are truly looking to use such features, you are better off (and in many cases, realistically looking at) writing native apps for each platform you intend to support.
HTML5 is not yet at the point where it can replace native apps. It can do some of the things that native apps can, but even then performance is suboptimal. Currently, native apps may be more difficult and time-consuming, but they are necessary.
Calling android native APIs from javascript functions of embedded WebView
Use JS to call Java code which will in-turn call the Camera API or whatever else you are looking for.
It's not going to be possible to do it on iPhone, the only known way of accessing the camera is through the Cocoa layer.

Native iPhone app using PHP/Ruby

I am new in iPhone development, and am trying to study the Objective-C language to develop my native app. Somewhere I heard that we can develop native apps for iPhone using PHP/Ruby with the help of third party tools like Phonegap or Rhomobile.
Does anybody know about these tools, and whether it is possible to develop native apps for iPhone by using these? If possible, does the App Store accept apps written using these tools?
I think you are referring to web apps, which approximate native apps. The front end, which is used on the mobile device, is written Javascript. The back end, if needed, are usually REST data services hosted on typical web servers. The back end can be written in Ruby, PHP, Scala ...
Phonegap wraps your HTML/CSS/JS app by compiling it into a device app. The Apple store has accepted Phonegap apps.
Some rich frameworks to consider: SproutCore, Cappuccino, Sencha Touch(?)
I'm playing with Backbone + jQuery Mobile, which doesn't try to be a desktop-like framework like the ones above. jQuery Mobile is not as full featured, but is lighter and leverages my current HTML5/JS/CSS skills.
I use Rhomobile to develop apps, it uses Ruby, html, css and other hooks into the phone's native cababilities. The benefit is that you can build an app once, and deply it for iPhone, iPad, Droid, Windows etc (with just a few tweaks) - you can download the app I developed with Rhodes (Rhomobile's framework) from the app stored. its called iMessiah - an app for Messiah College, here in PA.
It has admissions department information, apply now (not that you'd complete the application on the phone, but you could), sports scores, integrated 3D campus map, department directories (uses the phones database), touch dial, news, schedule a visit ...
if you don't want to install it - you can check it out here - http://www.messiah.edu/mobile/iMessiah/index.html
-Jon