Code Monkey home page Code Monkey logo

airlocation's People

Contributors

mumayank avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

airlocation's Issues

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

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.

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' }
    }
}

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

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.