Skip to main content
Participant
January 26, 2018
Question

in Air 28 Geolocation not work on android devices

  • January 26, 2018
  • 1 reply
  • 549 views

Hi every one

Geolocation Services are not working using AIR 28.0.0.125 on Android

There are no geolocation permission request at app startup and as a result the geolocation data inside the air app not working  , but the same code  it working correctly using AIR23 .

now  really i have this big problem i want to resolve it  but i couldn't so i hope that  any one  can  found the solution and give me it.

with my respects

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
January 26, 2018

There were changes in the way permissions work in AIR24. The release notes explain what's different, and how to cope:

Release Notes Flash Player 24 AIR 24

One thing in there that could save you some time is a note to say:

"On Android, If you do not want to handle permissions in your application, use targetSdkVersion less than 23 in your application descriptor file."

So, if you set targetSdkVersion in the app descriptor XML to be 21, for example, your app should work fine. If you let it use 23 or later, you need to understand how to check if location has been given permission, before you start to use it.

Participant
January 27, 2018

thank you very very much   my code working very good