airlocation's People
Forkers
morristech developersancho trashc0de rasheedk eis6aer raychong appdevmanish spartakos87 dmbuchta batwolf lazercorn rranjithkumar100 crazyshan nirmalhk7 enriquejuan2 enessubas jaymoh simouche ankurjagani isma3ilmohamed tayyabejaz luiszheng0627 hemal-patel sonth-bhsoft tommyteavee kelvinpac arindomghosh zeronilzero sunnykinger iamukasa akashmi khalilcharfi android-archiver ni3narale sukhwantsingh mayankeinsite viaagra vjdroider lisumac ipbill chaterinamf tharunanne xyztlpairlocation's Issues
Get more precise lat long
How can I get more precised lat long of users location?
Is there any function to stop receiving updates like airLocation.stop() ?
can I update user location ?
first of all, I want say thank you very much for this great library. the easiest implementation yet I can get the most accurate location. so awesome.
I want to get the latest user location whenever user open the app. the user maybe close the app for a while and open it again.
so I need to put getcoordinate code in onResume. can I do that using AirLocation ?
something like this
override fun onResume() {
super.onResume()
airLocation.updateLocation()
}
then get the updated location result onSuccess callback maybe
how to do that ? or can I do trick to achieve that ?
Crash After using latest Sdk (2.5.2)
Hi mumayank,
I got crash after i update latest version of AirLocation SDK
stacktrace as below
Process: mobile.android.myapp, PID: 4356
java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.SettingsClient, but class was expected (declaration of 'com.google.android.gms.location.SettingsClient' appears in /data/app/mobile.android.myapp-lcUiTnwLRisX1ykHFmfcUA==/base.apk!classes16.dex)
at mumayank.com.airlocationlibrary.helpers.LocationOptimizationPermissionHelper.getPermission(LocationOptimizationPermissionHelper.kt:29)
at mumayank.com.airlocationlibrary.AirLocation.getOptimizationPermissions(AirLocation.kt:138)
at mumayank.com.airlocationlibrary.AirLocation.checkIfInFlightMode(AirLocation.kt:129)
at mumayank.com.airlocationlibrary.AirLocation.access$checkIfInFlightMode(AirLocation.kt:20)
at mumayank.com.airlocationlibrary.AirLocation$airPermissions$1.invoke(AirLocation.kt:55)
at mumayank.com.airlocationlibrary.AirLocation$airPermissions$1.invoke(AirLocation.kt:20)
at mumayank.com.airpermissions.AirPermissions.request(AirPermissions.kt:47)
at mumayank.com.airlocationlibrary.AirLocation.getLocationPermissions(AirLocation.kt:118)
I have followed documentation for every steps, i believe there is no issue there. I think this issue only appears inside AirLocationsdk. Based on this similar issue the problem might comes from google play service.
Could you like to help me? thanks
can we stop to update location ?
after updating location using airLocation.start()
, can we manually stop to update the location ?
I mean something like airLocation.stop()
, currently I am using version 2.4 and it seems there is no method to stop the update. is there any alternative way to do that ?
Doesn't work in Android 11
After granting permission, show the location of Google Headquarter but not showing the location set on the emulator.
Android Studio: 4.1.2
Emulator: Nexus 5X API 30
Getting location, sometimes to long
Sometimes I must wait five minutes or longer, before he got the location of the device. What can be the problem?
Location not working in Android 10
Steps to reproduce the issue in the sample app.
--> Disable location
--> start app and grant permission for the location.
--> Press "No Thanks" button in GPS popup.
--> Then again start updates. This time press "Ok" in GPS Popup.
--> Now location not working. and always show HIGH_PRECISION_LOCATION_NA_TRY_AGAIN_PREFERABLY_WITH_NETWORK_CONNECTIVITY as an error.
airLocation dose not update on location changed
how can i update airlocation on location change ? it dosent update ui when i change my place . updating ui , i must close and open app again , i have to do it over and over .
Add huawei location would be nice
Could not find com.github.mumayank:AirLocation:2.5.1 error
syncing my gradle leads to the following error
Could not find com.github.mumayank:AirLocation:2.5.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/mumayank/AirLocation/2.5.1/AirLocation-2.5.1.pom
- https://repo.maven.apache.org/maven2/com/github/mumayank/AirLocation/2.5.1/AirLocation-2.5.1.pom
- https://jitpack.io/com/github/mumayank/AirLocation/2.5.1/AirLocation-2.5.1.pom
this is my settings.gradle
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Fatal Exception: java.lang.NullPointerException Listener must not be null
Fatal Exception: java.lang.NullPointerException
Listener must not be null
Can you change the params activity by context?
For this used in many places.
Thanks for create this lib
Get distance location
Can I get distance between two location or more using this library?
StopService option should be added
Does this library work with huawei/xiaomi devices with aggresive OEM's?
I've had a lot of trouble implementing continuous location tracking for a fitness app with the suggested methods, since some phones have very aggresive battery-saving systems that kill even foreground services and stop services from getting location updates.
Does this librar y solve the problem? sorry for asking here, I don't know where I'm supposed to ask this
Using passive location for speeding up the process
Hi @mumayank just been looking through your library and noticed it seems to be missing fetching passive locations available on the device which would avoid having to wake up receivers and the GPS/wifi location in several cases!! I've written a similar piece of code (without the permission handling bit) which is also available on github (https://github.com/david-serrano/locationprovider) in case you're interested. Also happy to receive feedback! :D
getting crash
I am getting below error when i am using this library with my project
Client must have ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission
Can the location request be set to high accuracy (GPS?) and fast interval?
Location Not get Sometimes
i got this error HIGH_PRECISION_LOCATION_NA_TRY_AGAIN_PREFERABLY_WITH_NETWORK_CONNECTIVITY
Not getting location callback for the first time
After user allowed the permission, location callback is not happening.
onActivityResult is deprecated
onActivityResult and onRequestPermissionsResult is deprecated. How alternative it ?
Location permission not working in android 12 Samsung device.
Hello,
I am using android 12 version and while getting location permission i got below error in on failure method.
HIGH_PRECISION_LOCATION_NA_TRY_AGAIN_PREFERABLY_WITH_NETWORK_CONNECTIVITY
Is this library working on background process
Hi dear developer, is this library support for background process since from android 8 above google has make limited resource to get location.
Air Location is Crashing
Even after giving the flag for requesting permission, the Library is crashing since the permission is not requested.
I am using it in a java project and have only taken the kotlin classes, not as a dependency
Ethernet Location Problem
I have an Android TV and there is a problem when connected via ethernet.
When the TV communicates with WiFi everything works as it should, but with LAN, he can not determine the location.
The library does not throw an error or return a location value.
(This is also the case with Google's FusedLocationProviderClient)
Maybe you could even see if it is possible with GPS or NetworkLocationProvider to retrieve the location otherwise it would be good if it would throw an error.
Location not being received if location is initially turned off
Hi, I got an issue with this library where if the location is turned off and the google dialogue shows up to enable location after the user accepts to enable location nothing happens from there. the library seems to not listen for that event and try getting location again. So for the first time if the location is turned off it doesn't work. But for subsequent times when the location is on everything works fine. I didn't have time to go through the library code so I thought you could provide quick advice about this. Cheers for the awesome library.
the locations are in array list, which one do I have to use ?
sorry this is actually not an issue, i am just confused.
from the onSuccess listener, we will get list of locations, what does it mean ? why list of locations instead of just one location ? and which one do I have to use ?
override fun onSuccess(locations: ArrayList<Location>) {
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.