Maps & Location

RSS for tag

Learn how to integrate MapKit and Core Location to unlock the power of location-based features in your app.

Maps & Location Documentation

Post

Replies

Boosts

Views

Activity

Background location stops with (kCLErrorDomain error 1.) but permission was granted
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?
1
2
582
Aug ’23
About popup asking user if they want to continue allowing the app to use location in the background
Hi everyone,I want to ask and to better understand about the popup that iOS will occasionnally ask the user like :"Weather" has been using your location in the background. Do you want to continue allowing this ?How often dose this occur nad how do they determine when to ask ? And is it possible to prevent this to show to the user ?I can't find any documentation, the only explanation i can find is from the presentation from WWDC 2014 video "What's New in Core Location".Thank,Pat.
10
0
11k
Jun ’16
Has anyone integrated Apple Maps features into a WordPress site for location-based content? How can we incorporate interactive maps seamlessly?
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!
0
0
507
Aug ’23
MapKit JS - Rendering Blank Satellite Map Tiles
When using the MapKit JS map on with satellite map type, the map is initially loaded properly. All the tiles are downloaded successfully (can confirm this from the Network tab) and these tiles are rendered on the map at first. However, then one or more of these tiles disappear from the map, leaving an empty space on the map and the grid background is seen on the tile(s). When the map is dragged even one pixel, the tile(s) reappear (even when no new tiles are downloaded, they are retrieved from memory). This error occurs only on the satellite map and it occurs consistently in my project and in my demo, with my own token or by using a public token (as seen in the demo below). Did anyone come up with this issue and if they did, how did they solve it? Here is the sample output: Demo Code : <head> <script src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js"></script> <style> #map { width: 1000px; height: 600px; } </style> </head> <body> <div id="map"></div> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> function getToken() { return $.get("https://jkap-mapkitjs-demo.glitch.me/token").then(function ( data ) { return { token: data }; }); } getToken().then(function (data) { mapkit.init({ authorizationCallback: function (done) { done(data.token); } }); var map = new mapkit.Map("map", { mapType: "satellite", }); }); </script> </body>
0
1
697
Aug ’23
Electron app crash on open in Test flight
Hello guys, I have an Electron app build with electron forge (v6.0.4). I was able to pass the verification via Transporter and able to install it from TestFilght. but the app was not able to run. I have tried to run the app from Terminal, I got the following error message: FATAL:mach_port_rendezvous.cc(142)] Check failed: kr == KERN_SUCCESS. bootstrap_check_in com.xxxx.yyyyy.MachPortRendezvousServer.39844: Permission denied (1100) Then I looked into the system logs, I found: 2022-12-17 22:03:10.473560 (gui/501 [100006]) : denied lookup: name = com.apple.CoreLocation.agent, flags = 0x1, requestor = AppName[39844], error = 159: Sandbox restriction 2022-12-17 22:03:10.473654 (system) : denied lookup: name = com.apple.locationd.desktop.registration, flags = 0x8, requestor = AppName[39844], error = 159: Sandbox restriction 2022-12-17 22:03:10.482191 (system) : failed lookup: name = com.epsecurity.bdconnectorservice, requestor = BDCoreIssues[162], error = 3: No such process 2022-12-17 22:03:10.537167 (gui/501/com.apple.xpc.launchd.unmanaged.AppName.39844 [39844]) : added unmanaged active 2022-12-17 22:03:10.537647 (gui/501 [100006]) : failed activation: name = com.xxxx.yyyy.MachPortRendezvousServer.39844, flags = 0x1, requestor = AppName[39844], error = 1: Operation not permitted I have tried with/without com.apple.security.personal-information.location in my entitlements file, but looks like no difference. I have spent many days on it, anyone can help?
2
0
1.1k
Dec ’22
Photogrammetry project question
Pre-planning a project to use multiple 360 cameras setup un a grid to generate an immersive experience, hoping to use photogrammetry to generate 3D images of objects inside the grid. beeconcern.ca wants to expand their bee gardens, and theconcern.ca wants to use it to make a live immersive apiary experience. Still working out the best method for compiling, editing, rendering; have been leaning towards UE5, but still seeking advice.
1
0
1.2k
Mar ’23
Background API call in iOS
Hello, I am building an enterprise application, where I will be syncing user location to the backend server every 5 min for a period of 12 hr every day. I have enabled location updates and background processing for the app in Xcode, and also will be getting location permission as always from user. We are able to get the location update from the user for the whole time, but the part where we make the service call to sync with backend is delayed. It works fine for the first couple of minutes, but later we see the delay. I have also used NWConnection to directly make the service call without using URLSession, this approach is slight better comparatively, but not perfect. I have made sure "Low power mode" and "Low data mode" is disabled, also "Background App Refresh" is enabled for the application. I believe it should be possible since may app eg. WhatsApp, Telegram have a feature of sharing live location for up to 8 hrs. Is there any way where we can achieve this without delay? Thanks in advance.
1
0
695
Aug ’23
MapKit : is there any user-location restriction?
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?
0
0
432
Aug ’23
Mapas - contribución
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
1
0
410
Aug ’23
CLLocationPushServiceErrorDomain
Error Domain=CLLocationPushServiceErrorDomain Code=3 "(null)" An error occurs when calling startMonitoringLocationPushes(completion:). Why does this error occur? Included com.apple.developer.location.push entrymen when I generated the bundle ID. Added push notification functionality. Requested Location service permission. Added location push service extension target.
0
0
268
Jul ’23
Unknown device in Find My app
Hi, I lauched my Find My app today and found every devices i (or my family) use but there was an unknown one, a macbook pro located the other side of the country in a city i never went to. This device doesn't appear in the list on devices on which my apple account is signed in, only in the Find My app Apple support reassure me, it's not on my logged in devices list so my credentials hadn't be stollen, it seams to be a problem with the iOs 17 beta Configurations : Sonoma bêta 14.0 (23A5286i) on my macbook iOS 17.0 (21A5277j) on my iPhone 11
0
0
544
Jul ’23