Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Ajax javascript & Geolocation

New Here ,
Feb 20, 2011 Feb 20, 2011

Hi guys,

is it possible to use Geolocation from Air Ajax (javascript)? Or it's available only from AS?

Thanks!

TOPICS
Development
645
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2011 Feb 22, 2011

It is my understanding that Javascript based AIR applications can not be created for AIR for Android. Now you can create a StageWebView within you application. That loaded HTML page can have JavaScript. Since it uses the devices' instance of WebKit, it should have the GeoLocatation API available.

Does that help?

Chris Griffith

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 22, 2011 Feb 22, 2011

Are you sure that i can't create Javascript based AIR app for Android? As I looked in docs it seems ok to do that - but i'm newbie in this so...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2011 Feb 22, 2011
LATEST

Unfortunately, AIR for Android development only supports ActionScript. I don't think there are plans for enabling Javascript based development (but I am not on the team). If you are a Javascript developer, then I would recommend looking at Titanium's Appcelerator or PhoneGap as possible solutions for you mobile development. Also, don't forget there is just developing as a mobile web app.

Chris

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines