All Questions
Tagged with cllocationmanager or core-location
5,837 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
0
answers
61
views
CLLocationManager not returning location data at high speeds (airplane) on IOS [closed]
developing an iOS app that tracks the current location using the CLLocationManager API. The app is working perfectly when the device is moving at normal speeds - walking, biking or driving - but I'm ...
0
votes
0
answers
51
views
How to capture the location event (enter/exit) that launched the app from terminated state?
I am implementing geofencing in my iOS app and running into some problems when the app is terminated (swiped up). I am using locationManager.startMonitoring(for: region) to initiate monitoring and ...
-1
votes
1
answer
29
views
Does didEnterRegion fire if you start monitoring inside the region?
Working on a geo-fence module and wondering if after defining and monitoring a region what is the expected behavior if the user is in that region already? (Noticing that I am not seeing an event)
If ...
0
votes
0
answers
32
views
how to delay requestWhenInUseAuthorization when a view appears
I wanna call the CLLocationManager's requestWhenInUseAuthorization with a delay when the app (view) appears. I have tried to have a task and a sleep like the below, but it doesn't seem to work. The ...
1
vote
1
answer
30
views
SwiftUI Not getting location permission prompt
I'm trying to learn how location services in SwiftUI work but I can't get the location permission prompt to work.
This is the code I have currently
import SwiftUI
import CoreLocation
@Observable
...
0
votes
1
answer
66
views
Location data no longer updating consistently after updating the app from old version
I am developing an iOS app that uses CLLocationManager to collect location continuously in both foreground and background. But it is having the following 3 issues and I don’t understand why:
After a ...
0
votes
0
answers
17
views
Request core location service access on OSX using Kotlin Native
I'm trying to create an application which needs to know if I am in a specific location or not. I've read that the CoreLocation API should be able to provide me with this data. Kotlin Native seems to ...
0
votes
0
answers
43
views
How to Implement Room-Specific Geofencing for Home Automation?
I am working on a home automation project that’s already implemented, and I’m trying to add a feature to detect the exact location of a user within my house, specifically within individual rooms.
I am ...
0
votes
0
answers
20
views
How to show a group of pre-defined marker PLUS the user's location? [duplicate]
I have made a view which shows a group of markers on a map:
Map(selection: $selected) {
ForEach(locationManager.points) { point in
Marker(
point.title,
coordinate: ...
0
votes
0
answers
115
views
iOS - Geofencing Event Not Triggering When App is Killed and Not Opened After 2-3 Days
I’m facing an issue with geofencing events in my app. When the app is killed and not opened for 2–3 days, the geofencing event is not triggering when I re-enter the geofenced area. I’ve made sure that ...
0
votes
2
answers
91
views
Get raw byte data array from ibeacon in ios app
My iBeacon, in addition to the standard UUID, Major, Minor, RSSI data, contains additional information about the battery level, which is located in a set of raw data bytes.
On Android, I can easily ...
-2
votes
1
answer
88
views
CoreLocation not working in Swift, but only on MacOS
This location manager in swift is not receiving location updates for MacOS. For your information:
This same file is shared with the iOS instance of the app and works fine there.
This is not my device ...
0
votes
0
answers
59
views
Detecting Driving State with Core Motion Framework - Automotive Accuracy Issues
I am working on an iOS app where I need to detect when a user starts and stops driving using the Apple Core Motion framework. I've implemented the following MotionActivityManager class to handle ...
2
votes
0
answers
220
views
Checking authorization status of AVCaptureDevice or CLLocation Manager gives runtime warnings in iOS 18
I have the following code in my ObservableObject class and recently XCode started giving purple coloured runtime issues with it (probably in iOS 18):
Issue 1: Performing I/O on the main thread can ...
0
votes
1
answer
82
views
Can't show alert to user
In an iOS app, when the user denies location permission, I want to show an alert to give permission. I debug it and code works successfully but I can't see any alert in the simulator.
I start the ...