Parse SDK unable to fetch location in background, always time out exception

邮差的信 提交于 2019-12-08 00:13:39

问题


Here is the code I am using :

ParseGeoPoint.getCurrentLocationInBackground(10000, new LocationCallback() {
        @Override
        public void done(ParseGeoPoint geoPoint, ParseException e) {

            if (e!=null)
            Print("location not found " + e.getLocalizedMessage());
            else
            {
                Print("location  found ");
            }
        }
    });

I have added permissions in manifest both access fine and access coarse location. Also, is it going to behave differently for android 6.0 with run time permissions.

Please let me know if I am doing something wrong. Thanks

来源:https://stackoverflow.com/questions/36592307/parse-sdk-unable-to-fetch-location-in-background-always-time-out-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!