Air Android版本6中没有触发GeolocationEvent.UPDATE,而Android版本中没有触发更多

Air Android版本6中没有触发GeolocationEvent.UPDATE,而Android版本中没有触发更多,air,flash-cs6,actionscript-3,air-android,Air,Flash Cs6,Actionscript 3,Air Android,我正在研究地理位置,我需要找出纬度和经度或国家和州的名称。我使用的是Flash CS6、AS3和AIR 24.0.0.180版本。它将返回Geolocation.isSupported为true但当我添加 geo.setRequestedUpdateInterval(1000); geo.addEventListener(GeolocationEvent.UPDATE, geolocationUpdateHandler); GeolocationEvent.UPDATE未在Android版本6

我正在研究地理位置,我需要找出纬度经度国家的名称。我使用的是Flash CS6、AS3和AIR 24.0.0.180版本。它将返回
Geolocation.isSupported
true但当我添加

geo.setRequestedUpdateInterval(1000);
geo.addEventListener(GeolocationEvent.UPDATE, geolocationUpdateHandler);
GeolocationEvent.UPDATE
未在Android版本6more上启动,对于5版本,它运行正常

//In constructor
if (Geolocation.isSupported) 
        { 
            geo = new Geolocation();
            geo.addEventListener(PermissionEvent.PERMISSION_STATUS, onPerm);
            //even adding update and status listeners here also it will not fired.
        } 
        else 
        { 
            log.text = "\n Geolocation not supported"; 
        }
stage.addEventListener(MouseEvent.CLICK, onClick);

private function onClick(e:MouseEvent):void
    {
        geo.requestPermission(); //here it is asking for permission.
    }

private function onPerm(e:PermissionEvent):void
    {
        //Permission event shows GRANTED when i click on allow.
        log.appendText("\n PermissionEvent : " + e.status.toUpperCase() + " !geo.muted :"+!geo.muted+"\n");
        if (!geo.muted) //true
        { 
            geo.addEventListener(GeolocationEvent.UPDATE, geoUpdateHandler); //these events are not fired. 
        } 
        geo.addEventListener(StatusEvent.STATUS, geoStatusHandler);//these events are not fired.
    }

自Android 6以来权限模式已更改:您需要请求用户权限并手动处理答案:@Organi,即使我正在添加
geo.requestPermission()和状态显示已授予,但未触发
GeolocationEvent.UPDATE
:(阅读更新事件描述,在发送之前需要满足某些条件:Hi@Organi,感谢您的回复,尽管遵循相同的过程,但我在授予权限时无法找到
GeolocationEvent.UPDATE
StatusEvent.STATUS
侦听器。
geo.addEventListener(PermissionEvent.PERMISSION\u状态,onPerm)
关于这一点,我获得了
授权
但我没有获得添加的侦听器。请检查,我添加了我的最新代码。理论上,您的代码是绝对正确的。在授予权限后,订阅活动的事实应该会第一次触发事件。您可能还想阅读一些有用的链接和知识Google>as3地理位置疑难解答出现wn问题。自Android 6以来权限模式已更改:您需要请求用户权限并手动处理答案:@Organi,即使我正在添加
geo.requestPermission();
,状态显示已授予,但未触发
GeolocationEvent.UPDATE
:(阅读更新事件描述,在发送之前需要满足某些条件:Hi@Organi,感谢您的回复,尽管遵循相同的过程,但我在授予权限时无法找到
GeolocationEvent.UPDATE
StatusEvent.STATUS
侦听器。
geo.addEventListener(PermissionEvent.PERMISSION\u状态,onPerm)
关于这一点,我获得了
授权
但我没有获得添加的侦听器。请检查,我添加了我的最新代码。理论上,您的代码是绝对正确的。在授予权限后,订阅活动的事实应该会第一次触发事件。您可能还想阅读一些有用的链接和知识Google>as3地理定位疑难解答中的wn问题。