Questions tagged [location-services]

Location Services allows location-based apps and websites (including Maps, Camera, Safari, and other Apple and third-party apps) to use information from cellular, Wi-Fi, Global Positioning System (GPS) networks, and iBeacons to determine your approximate location.

268 questions
2
votes
1 answer

Which one to use "locations array" or "manager.location.coordinate" in Swift in iOS to get user location?

I want to get the user's location. It might be approximate position, that's fine. In didUpdateLocations method, i saw two ways to get the coordinates. Using manager.location.coordinate Using locations array Which one should I go for? I am…
kishorer747
  • 810
  • 1
  • 10
  • 24
2
votes
3 answers

Is it possible to scan a beacon with location service disable using objective C?

I am able to scan beacon successfully if Bluetooth and location services are turned on. But I want to know is there any way to scan beacon when Bluetooth is on mode and location service is in off mode. I have used this code but this delegate method…
2
votes
0 answers

Can we use location services as mandatory in iOS?

Actually My app rejected under below 2 content where as apple approved the thrice before this build for same feature. From Apple 5.3 - Apps that send Push Notifications without first obtaining user consent, as well as apps that require Push…
2
votes
4 answers

How to get Current Location using seperate class in Android

I need to get current location using seperate class which not in the Activity. This is my code and it doesnt't work. Anyone have idea to fix this.This application is always crash when I try to get location details. package…
Ishan Fernando
  • 2,758
  • 1
  • 31
  • 38
2
votes
1 answer

How Android Lollipop and other devices ask location permission?

After further research, i found that requestPermission only works on Android M. If i just include the permissions i needed in android manifest file, how does android ask user for the permission granted? For example, access fine location permission.…
veeyikpong
  • 829
  • 8
  • 20
2
votes
0 answers

checkselfpermission crashes app

i want to fetch location and address by gps but in sdk 23 checkselfpermission crashes app when i enabled gps through app. if (locationManager.isProviderEnabled(provider)) { if (ActivityCompat.checkSelfPermission(this,…
man issar
  • 41
  • 1
  • 4
2
votes
1 answer

lastKnownLocation is always returning null when gps is off

I am using Google Service API , LocationServices.FusedLocationApi to find user's current and then updated Location. I have tested on emulator as well as on actual device and I have found that if I turn off GPS…
2
votes
1 answer

Fused location API gives highly inaccurate location after closing google maps

Our application uses Google Fused location API to receive location updates every 3 minutes. The location request settings are as follows – Interval – 3min Fastest interval – 1 min Priority - PRIORITY_BALANCED_POWER_ACCURACY In a normal running…
2
votes
1 answer

How to enable Location Services for a WKWebView in Swift?

My Browser app uses WKWebView but when I try to visit a website that needs to use Location Services (like Google Maps, for example), it doesn't work. I have searched for a way to fix it and came across this question. I tried to add the string on the…
PastaCoder
  • 1,031
  • 1
  • 9
  • 16
2
votes
2 answers

Can't use an activity as an instance of LocationListener when calling requestLocationUpdates()

In my App, after connecting to LocationServices.API, in the onConnected() callback, I start a location Updates Request, the problem is that the Activity that handles the process (DataActivity) is not recognize as an instance of LocationListener, it…
Danfoa
  • 930
  • 2
  • 11
  • 24
2
votes
5 answers

Figure out Latitude and Longitude

I am trying to develop an android application that can do task according to the lat/long. This is something like if I am in particular suburb (Lets say I am in Belconnen, ACT Australia, I would like to get the details of that place automatically) -…
TheDevMan
  • 5,914
  • 12
  • 74
  • 144
2
votes
2 answers

Wake periodically iOS app to check location

I am developing an iOS app that uses permanently in background the Location Service to monitor Beacons and GPS regions. This causes my app to uselessly consume the battery if the device is not near the location of my iBeacons. It also always shows…
Raphael Royer-Rivard
  • 2,252
  • 1
  • 30
  • 53
2
votes
0 answers

How Exactly Geofencing for Android Works?

I am trying to implement location-aware App and trying to use Geofence APIs of Google-Play-Services. I haven't completely test it yet. But, I am curious about how exactly Google gonna send Intent to my registered service. Because all the code for…
Aung Pyae
  • 1,590
  • 2
  • 16
  • 25
2
votes
1 answer

Utilising Google Maps v2: Error on Debugging (Dalvikvm)- Could not find class 'gpq' referenced from method gpr.a

I have attempted the following activity using Google Maps API v2 (Android). The API Key generated is working and the necessary permissions in the manifest.xml has been declared accordingly. Here is the code for the activity class, MapView.java,…
1
vote
0 answers

iOS // CLLocationManager // didFailWithError is triggered with kCLErrorDenied while there are permissions

I have a navigation app that supports CarPlay connection. When running with CarPlay, some users report that they appear to not have GPS connection. Looking at the logs I noticed that on app launch we're getting didFailWithError with error code…
hillasm
  • 83
  • 6