Getcurrentlocationinbackground Parse.com
I'm trying to develop application that uses GPS locations for services. Each service should has a location (GeoPoint). I'm trying to get my current location and save it to parse da
Solution 1:
I was able to fix this by adding the following dependency in build.grade:
dependencies {
compile'com.google.android.gms:play-services-location:7.5.0'
}
I also had to remove all ACCESS_COARSE_LOCATION
and ACCESS_FINE_LOCATION
permissions from AndroidManifest.xml, which seems very strange.
The way you have defined the Criteria is correct, and also necessary.
This is a really nice feature in the Parse.com API but I wish they would provide some documentation. As is, I don't really trust it... I'm just using it as a quick and dirty solution until I have time to implement Google Play Services properly.
Post a Comment for "Getcurrentlocationinbackground Parse.com"