Maps and Location

RSS for tag

Build maps and location awareness capabilities into your apps.

Posts under Maps and Location tag

87 Posts
Sort by:
Post not yet marked as solved
0 Replies
366 Views
Getting the crash only in iOS 14.x and i cannot identify the reason. Log: Crashed: com.apple.main-thread 0 VectorKit 0x324360 md::FrameGraphUtils::prepareGraphBuilderForRenderTarget(md::FrameGraphBuilder*, ggl::RenderTarget*, geo::StringLiteral, geo::StringLiteral, geo::StringLiteral) + 72 1 VectorKit 0x526f20 md::PassList::didPrepareForLayout(md::LayoutContext const&, md::Renderer&) + 276 2 VectorKit 0x526f20 md::PassList::didPrepareForLayout(md::LayoutContext const&, md::Renderer&) + 276 3 VectorKit 0x99dc4 md::CartographicRenderer::layout(md::LayoutContext&) + 120 4 VectorKit 0x8e2ac md::MapEngine::layoutScene(double, bool) + 664 5 VectorKit 0x8de5c -[_MapEngineRenderQueueSource renderQueueForTimestamp:] + 60 6 VectorKit 0x8ddf4 -[MDDisplayLayer _renderQueueForTimestamp:prepareHandler:] + 36 7 VectorKit 0x8ddc0 -[MDDisplayLayer renderQueueForTimestamp:] + 48 8 VectorKit 0x8d028 -[MetalLayer _onTimerFired:withPresent:] + 256 9 VectorKit 0x8c7b4 md::MapEngine::renderScene(double, std::__1::function<void ()>) + 100 10 VectorKit 0xca7a8 md::MapEngine::onRenderTimerFired(double) + 344 11 VectorKit 0x4ab388 std::__1::function<void (double)>::operator()(double) const + 48 12 VectorKit 0xca594 ggl::RunLoop::_RunLoopCallbacker::callback(double) + 144 13 VectorKit 0x63c2b8 ___ZN3ggl11DisplayLinkC2ENSt3__18functionIFvdEEE_block_invoke_2 + 92 14 libdispatch.dylib 0x4420 _dispatch_client_callout + 20 15 libdispatch.dylib 0x779c _dispatch_continuation_pop + 416 16 libdispatch.dylib 0x19298 _dispatch_source_invoke + 1260 17 libdispatch.dylib 0x11d04 _dispatch_main_queue_callback_4CF + 556 18 CoreFoundation 0xc39ec CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 19 CoreFoundation 0x82878 __CFRunLoopRun + 2508 20 CoreFoundation 0x81740 CFRunLoopRunSpecific + 600 21 HIToolbox 0x315c4 RunCurrentEventLoopInMode + 292 22 HIToolbox 0x313f4 ReceiveNextEventCommon + 688 23 HIToolbox 0x31124 _BlockUntilNextEventMatchingListInModeWithFilter + 76 24 AppKit 0x4182c _DPSNextEvent + 868 25 AppKit 0x401ac -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1312 26 AppKit 0x32060 -[NSApplication run] + 600 27 AppKit 0x3804 NSApplicationMain + 1064 28 AppKit 0x2f56d4 _NSApplicationMainWithInfoDictionary + 22 29 UIKitMacHelper 0x4fc4 UINSApplicationMain + 1276 30 UIKitCore 0x2a60 UIApplicationMain + 164 31 libswiftUIKit.dylib 0x13688 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 104 32 BilliyoClinicalPDN 0x1b898 main + 4377884824 (GoalProgressHeader.swift:4377884824) 33 libdyld.dylib 0x16f34 start + 4 Thread 0 libsystem_kernel.dylib 0x29c4 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x30ac _pthread_wqthread + 352 2 libsystem_pthread.dylib 0x1d94 start_wqthread + 8 Thread 0 libsystem_pthread.dylib 0x1d8c qos_class_main + 98 Thread 0 libsystem_kernel.dylib 0x29c4 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x30ac _pthread_wqthread + 352 2 libsystem_pthread.dylib 0x1d94 start_wqthread + 8 Thread 0 libsystem_kernel.dylib 0x29c4 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x30ac _pthread_wqthread + 352 2 libsystem_pthread.dylib 0x1d94 start_wqthread + 8 com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0xce8 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x1098 mach_msg + 76 2 CoreFoundation 0x83e98 __CFRunLoopServiceMachPort + 380 3 CoreFoundation 0x8236c __CFRunLoopRun + 1216 4 CoreFoundation 0x81740 CFRunLoopRunSpecific + 600 5 Foundation 0x64a88 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 6 Foundation 0xf3254 -[NSRunLoop(NSRunLoop) runUntilDate:] + 124 7 UIKitCore 0x3ff4 -[UIEventFetcher threadMain] + 156 8 Foundation 0x5d0f4 NSThread__start + 864 9 libsystem_pthread.dylib 0x706c _pthread_start + 320 10 libsystem_pthread.dylib 0x1da0 thread_start + 8 Thread 0 libsystem_kernel.dylib 0x29c4 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x30ac _pthread_wqthread + 352 2 libsystem_pthread.dylib 0x1d94 start_wqthread + 8 Thread 0 libsystem_kernel.dylib 0x29c4 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x30ac _pthread_wqthread + 352 2 libsystem_pthread.dylib 0x1d94 start_wqthread + 8 Thread 0 libsystem_kernel.dylib 0x29c4 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x30ac _pthread_wqthread + 352 2 libsystem_pthread.dylib 0x1d94 start_wqthread + 8 Thread 0 libsystem_kernel.dylib 0x29c4 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x30ac _pthread_wqthread + 352 2 libsystem_pthread.dylib 0x1d94 start_wqthread + 8 Thread 0 libsystem_kernel.dylib 0x29c4 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x30ac _pthread_wqthread + 352 2 libsystem_pthread.dylib 0x1d94 start_wqthread + 8 com.google.firebase.crashlytics.MachExceptionServer 0 FirebaseCrashlytics 0x1ef98 FIRCLSProcessRecordAllThreads + 184 1 FirebaseCrashlytics 0x1f378 FIRCLSProcessRecordAllThreads + 1176 2 FirebaseCrashlytics 0x16618 FIRCLSHandler + 48 3 FirebaseCrashlytics 0x18dd8 FIRCLSMachExceptionServer + 688 4 libsystem_pthread.dylib 0x706c _pthread_start + 320 5 libsystem_pthread.dylib 0x1da0 thread_start + 8 com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0xce8 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x1098 mach_msg + 76 2 CoreFoundation 0x83e98 __CFRunLoopServiceMachPort + 380 3 CoreFoundation 0x8236c __CFRunLoopRun + 1216 4 CoreFoundation 0x81740 CFRunLoopRunSpecific + 600 5 CFNetwork 0x24c7d0 _CFURLStorageSessionCopyCache + 36132 6 Foundation 0x5d0f4 NSThread__start + 864 7 libsystem_pthread.dylib 0x706c _pthread_start + 320 8 libsystem_pthread.dylib 0x1da0 thread_start + 8
Posted
by
Post not yet marked as solved
0 Replies
375 Views
when requestWhenInUseAuthorization() some phone not show system prompt view,The NSLocationWhenInUseUsageDescription key is already add. -locationManager:didChangeAuthorizationStatus: callback too kCLAuthorizationStatusNotDetermined,but the iPhone not show use location dialog,Does anyone know the reason?
Posted
by
Post not yet marked as solved
0 Replies
288 Views
Hello, we are currently working with a third-party mapping company and they are saying due to Apple's management, the Indoor maps Programm is currently not accepting any third-party IMDF files. Can you confirm if this is true? How can we then publish the file? Thank you in advance
Posted
by
Post not yet marked as solved
3 Replies
1.9k Views
Hi, I'm looking through SwiftUI Map for SwiftUI documentation (including IOS17 Beta) for way to adjust Map() scale, or zoom level, while simultaneously showing user's location and heading, for which I'm doing this @State var position = MapCameraPosition = .userLocation(followsHeading: true, fallback: .automatic) Map(position: $position) It does not appear to be possible so am looking for confirmation. Thanks everyone.
Posted
by
Post not yet marked as solved
1 Replies
358 Views
Me encuentro en el país de Colombia y por muchos años todavía Apple no va habilitado el modo de navegación en mi país también me di cuenta que hay muchos países con ciudades muy importantes claro está que tienen sus ciudades muy bonitas en mapas 3D fotorealismo o en mapas 3D en vista estándar mi pregunta es si yo desde Colombia desde mi ciudad podría ayudar a qué las fotos del terreno visto desde el aire fueran mucho mejor con ayuda de un drone. Y así empezar a evolucionar un poco mi ciudad referente a Apple Maps, O también para empezar a que la navegación en Apple Maps sea más cercana de lo que Apple tiene pensado para nosotros
Posted
by
Post not yet marked as solved
0 Replies
388 Views
Hi, We've released a golf app available on iOS. It uses MapKit to display maps : golfcourses, shots, livecaddie, telemeter etc. Some users from South-Korea are complaining about not being able to zoom-in on areas located in their country (particularly in the New Seoul Country Club). They can have an overview of the golfcourse but it's impossible to get closer. If they try on other golfcourses located in the US or in the UK, it works perfectly (still trying from Korea). We can't replicate the issue on the Simulator. We changed the language/region + gps location to South-Korean. Our IP is located in France. Do you know if there's some restriction about map display depending on the country you are currently located?
Posted
by
Post not yet marked as solved
0 Replies
452 Views
I'm looking to integrate Apple Maps features into my WordPress website for location-based content. Has anyone successfully accomplished this and can share insights on how to seamlessly incorporate interactive maps within the WordPress platform? Any recommended plugins, APIs, or coding approaches that ensure a smooth integration and optimal user experience across devices? I'd greatly appreciate any guidance on best practices, potential challenges to watch out for, and practical tips based on your experiences. Thank you!
Posted
by
Post not yet marked as solved
1 Replies
511 Views
We are currently experiencing a very interesting issue when accessing the location in the background with CLLocationManager. The user has given our app the "whenInUse" permission for locations and in most cases the app provides location updates even when it's in the background. However, when we started to use other navigation apps in the foreground we saw that the func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) method was called with (kCLErrorDomain error 1.). The user hasn't changed the location permission and we saw that locations were delivered once the user opened the app again. I don't see anything in the documentation explaining this issue, but I chatted with other developers that confirm that specific behavior. Am I missing something here?
Posted
by
Post not yet marked as solved
0 Replies
320 Views
MacBook cannot detect my location. Google Maps, HorizonBlue, and others tell me to enable location services. Everything seems to be enabled but the problem persists. Started around a month ago. TRIED: Resetting the MacBook, Shut down, Restart, Clear cookies VERSION: Sonoma Beta 14.0 (23A5301h)
Posted
by
Post not yet marked as solved
0 Replies
382 Views
Hey yall--seemingly once in a blue moon whenever fetchLocation gets called in here from a widget that is requesting location, it calls on the manager's requestLocation, the widget will crash. Crash stack backtrace shows this: And this is the affected code: import Foundation import CoreLocation class WidgetLocationFetcher: NSObject, CLLocationManagerDelegate { let manager = CLLocationManager() private var handler: ((CLLocation?) -> Void)? override init() { super.init() DispatchQueue.main.async { self.manager.delegate = self self.manager.requestWhenInUseAuthorization() } } func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { self.handler?(locations.last!) self.handler = nil } func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) { print(error) self.handler?(nil) self.handler = nil } func fetchLocation(handler: @escaping (CLLocation?) -> Void) { self.handler = handler self.manager.requestLocation() } } I am not too sure what could even be causing this, although I am running watchOS 10 beta 8 and iPadOS 17 beta 8 on the devices experiencing this crash. Has anyone ever solved this issue?
Posted
by
Post not yet marked as solved
0 Replies
416 Views
Am looking to finally updating some old code now that we are dropping iOS 15 support and want to move to the new mkMapView configurations such as MKHybridMapConfiguration. However when I use that configuration I cannot get it to show traffic conditions, even though I am setting showsTraffic = true Bug, feature, dumb coding error on my part?
Posted
by
Post not yet marked as solved
1 Replies
1.1k Views
In UIKit, we can add an insets to a MKMapView with setVisibleMapRect to have additional space around a specified MKMapRect. It's useful for UIs like Apple Maps or FlightyApp (see first screenshot attached). This means we can have a modal sheet above the map but still can see all the content added to the map. I'm trying to do the same for a SwiftUI Map (on iOS 17) but I can't find a way to do it: see screenshot 2 below. Is it possible to obtain the same result or should I file a feedback for an improvement?
Posted
by
Post not yet marked as solved
1 Replies
449 Views
@Gualtier Malde, My app has not been able to send location updates in the background past 5hrs even after implementing all the changes you specified The debugger spits out nothing .... allowsBackgroundLocationUpdates must be set to TRUE distanceFilter must not be set desiredAccuracy must be kCLLocationAccuracyHundredMeters or better. If you’re using numeric values, it must be set to less than 1000 meters (We set it to 100m) We have been losing hundreds of enterprise clients as a result of this, is there something we can do to ensure the behaviour is similar or same to iOS <16.4?
Posted
by
Post not yet marked as solved
0 Replies
406 Views
In iOS 17 Beta (beta1 to RC versions all have this issue), my phone gets extremely hot when I open any app that continuously accesses GPS. The built-in Maps app heats up relatively well, but other third-party apps heat up quickly, causing the device to throttle, reduce brightness, and even lag. Device:iPhone 12
Posted
by
Post not yet marked as solved
1 Replies
527 Views
I built an autopilot for my boat, and took it further by writing an IOS app to control it via bluetooth with my phone. Everything was working great, until I thought I'd add the ability to navigate a route. Here's what has me stumped... I've got location manager generating updates, as long as the phone is moving (ever so slightly) in my hand. I've got the display setup to never sleep, and the phone is plugged in to power. If I put the phone down, I get a few new locations, then the location freezes. The didUpdateLocations delegate is called, but the location never changes. I've tried a number of settings but no matter what I try, none have solved the still phone issue. My current design uses self.locationManager?.requestLocation() sent on at programmable interval, so that I get updates with reasonable spacing. The updates come, but the location is identical if the phone is still (laying on the dash of the boat). If I just "wiggle" the phone a bit, locations come with a new value. If I keep "wiggling the phone, I get new locations every call to requestLocation. Seems like there is some kind of inactivity timer associated with didUpdataLocations that prevents retrieving new locations. It just re-sends the previous location. This issue has nothing to do with using requestLocation, since I had the same issue when didUpdateLocations was running on its own timing. I added the code and logic to support requestLocation in an attempt to force a new location. Has anyone experienced this or have any idea how to force a "new" location when the phone is still? I'm using Xcode Version 14.3.1 (14E300c) The phone is an iPhone 12 and the deployment target is set to 15.3 Here's how I currently configure location manager... This is one of a number of attempts, but all have the same issue. if locationManager == nil{ print("****** instantiating locationManager ******") locationManager = CLLocationManager() locationManager!.distanceFilter = kCLDistanceFilterNone // locationManager!.distanceFilter = 3 locationManager!.desiredAccuracy = kCLLocationAccuracyNearestTenMeters locationManager!.delegate = self locationManager!.showsBackgroundLocationIndicator = true locationManager!.startUpdatingLocation() locationManager!.startUpdatingHeading() locationManager!.allowsBackgroundLocationUpdates = true } }
Posted
by
Post marked as solved
1 Replies
587 Views
My watch app records workouts including health (with HKWorkoutSession) and location data.The watch app is on the App Store and runs without any problems since long time. I updated my own Watch Ultra to watchOS10 and my app does not properly work anymore. Everything works with the exception that the app does not receive any CLLocationManager data on the physical device. On the simulator it works perfectly. I tried several devices in the simulator and they all work. Also I de-coupled the watch from the phone, deleted the watch completely and re-installed it. My app's target is watchOS9, I tried it with watchOS10 and the problems are the same CLLocationManager has correct and valid permissions CLLocationManager is setup like this: locationManager = CLLocationManager() locationManager.delegate = self locationManager.allowsBackgroundLocationUpdates = true locationManager.activityType = .fitness locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager.distanceFilter = kCLDistanceFilterNone locationManager.startUpdatingLocation() CLLocationManager's delegate is listening to: func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) The CLLocationManager is starting and correctly giving feedback on 'didFailWithError' and on 'didChangeAuthorization'. Nothing that tells me that something is wrong and points to a problem. No data is sent to didUpdateLocations. The function is never ever called. Of course I'm outside with my watch and the GPS signal is strong and I wait long enough. My app is adding the recorded workout to Apple Fitness app (my app uses HKWorkoutSession) and even though my own app does not receive any CLLocationManager data, the workout that it sent to Apple Fitness includes all the CLLocationManager data. It really seems like being a problem with my app only. Does someone have an idea or knows of a same problem? Thomas
Posted
by
Post not yet marked as solved
0 Replies
357 Views
We request for your kind support, whether it is a previous experience or even a comment will help us a lot! We received rejection for below issue from Apple : ** Guideline 4.0 - Design Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app. Next Steps To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.** But, our app requires POI(point of interest) on google maps for the service, thus, utilizing apple map's data causes disruption and mismatch of POI data causes issues on business logic (If our app's function was just loading apple map with marker on it, we could solve the issue..) Has anyone faced this rejection issue? We look forward to your kind comment, we are on the verge of going under due to the continuous rejections and errors from app store connect. We are desperate and we request for your kind comments. Sincerely
Posted
by
Post not yet marked as solved
0 Replies
341 Views
I have a new app that I am starting using the Map() component in iOS17. That struct, creates a class which is a CLLocationManagerDelegate, and instantiates a CLLocationManager. In the Target's Info settings, I have Privacy - Location Always and When In Use Usage Description Privacy - Location Always Usage Description Privacy - Location Usage Description all three set. I have another Map app with these set which doesn't have this problem, so I am confused about why, in Privacy & Security->Location Services, the App only shows two selections for Location Services. It shows only "Never" and "When I Share" selections with "When I Share" selected. The location manager reports error: The operation couldn’t be completed. (kCLErrorDomain error 1.) after I get the CLAuthorizationStatus(rawValue: 0) auth=CLAccuracyAuthorization(rawValue: 0) value in public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) status change in this callback for the delegate and then call: manager.requestAlwaysAuthorization() manager.startUpdatingLocation() What am I missing here?
Posted
by
Post marked as solved
1 Replies
966 Views
I have a map (iOS 17) that displays the three Apple maps types (standard, hybrid, and imagery). When the hybrid or imagery map is displayed for the first time it is zoomed in to the max and out-of-focus. It appears to be a problem with the span. I would like to set the span to fix this, but I'm not sure if span has a new name or is no longer used. In previous versions of iOS I had a region that defined the span and coordinate center, It appears that this has now been deprecated: let span = MKCoordinateSpan(latitudeDelta: 0.005, longitudeDelta: 0.005) let region = MKCoordinateRegion(center: coordinate, span: span) MapView(region: region, mapType: mapType, coordinate: coordinate) Here is my actual code for display a map (iOS 17): struct DetailView: View { var item: TravelEntries // <-- coordinates arrive from CoreData Transaction @Binding var mapType: Int var coordinate: CLLocationCoordinate2D { CLLocationCoordinate2D( latitude: item.entryLat, longitude: item.entryLong) } var selectedMapStyle: MapStyle { return switch(mapType) { case 0: .standard(elevation: .realistic) case 1: .hybrid case 2: .imagery default: .standard(elevation: .realistic) } } var body: some View { VStack { Map() { Marker(item.entryCatName ?? "", coordinate: coordinate) .tint(.red) } .mapStyle(selectedMapStyle) ShowMapPicker(item: item, mapType: $mapType) ShowDetails(item: item) } } }
Posted
by