Skip to main content
gurup
Participant
August 7, 2017
Question

GeolocationEvent.UPDATE is not fired in Android version 6 and more than in AIR for Android

  • August 7, 2017
  • 1 reply
  • 677 views

Hi,

         I am working on GEOLOCATION, i need to find out the Latitude and Longitude otherwise Country and State Names. I am using Flash CS6, AS3 and AIR 24.0.0.180 version. It will return Geolocation.isSupported is true but when i am adding

geo.setRequestedUpdateInterval(1000);

geo.addEventListener(GeolocationEvent.UPDATE, geolocationUpdateHandler);

The GeolocationEvent.UPDATE is not fired on Android version 6 and more than, for 5 it is working fine.

Thanks in advance!!

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
August 7, 2017

Make sure you have ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION in the Android publishing settings.

gurup
gurupAuthor
Participant
August 7, 2017

Hi @colin Holgate,

              Thank you for your reply.I set those permissions and even though i am adding import flash.events.PermissionEvent; and geo.requestPermission(); , the import flash.permissions.PermissionStatus; shows GRANTED but the GeolocationEvent.UPDATE is not fired.

Participating Frequently
August 8, 2017

Hi gurup,

I have tried it with 24.180 but not able to reproduce the issue. It is working fine.

Could you please share the sample project with us for the same.

Also, have you tried it with latest AIR SDK 26?

Regards

Aakriti | Adobe Engineering Team