Maps and Location

RSS for tag

Build maps and location awareness capabilities into your apps.

Posts under Maps and Location tag

88 Posts
Sort by:
Post not yet marked as solved
2 Replies
4.1k Views
Hello, I have an attendance based app which uses user current location. I want to prevent my ios app from location spoofing which is done by itool or many other tools can anyone please help me out.
Posted
by
Post not yet marked as solved
1 Replies
1.7k Views
Hi, I'm new to wallet, but I already implemented a Loyalty Pass with some use cases: distributing, pushing updates, standard notifications, geofencing notifications with lock screen notifications. Until a month ago, all worked flawlessy, but now the majority of my audience (the users that have installed the pass in their Apple Wallet) don't see the notifications when they enter in the location radius. The strange thing is that with the same json content (same id, same locations list, same coordinates) some users see said notification without a hassle while the other see nothing, even toggling on and off all the related permissions. I suspect (only a suspect, I'm going by exclusion) that the new device subscriptions are those who don't see the notifications and only the old ones see everything as before. Any suggestion? Do a users dashboard (or at least a device subscription list) exist in my Apple Developer portal? Is a known bug, already reported? Thanks for all your replies
Posted
by
Post not yet marked as solved
2 Replies
1.5k Views
Hello, I set up multiple Advanced App Clips experiences with some attached to locations in Apple Maps. But it never appears on those locations in the Maps app. However, the App Clips perfectly launch when scanned from a QR Code, but the App Banner in Safari does not appear if the App is not already installed on my phone. Does anyone know how to debug and fix this issue? Or maybe I am missing something, a review of such Advanced App Clips Experiences linked to Maps perhaps?
Posted
by
Post not yet marked as solved
5 Replies
2.9k Views
Hi guys. I just started developing my own apps and I am very new to Swift and development for iOS, but I had an idea for a great app that utilizes the "Look around" feature that Maps provide, but I can't find any information about this in the documentation for MapKit. Does anyone know if it currently possible to enable a view for this? Thanks in advance!
Posted
by
Post not yet marked as solved
3 Replies
2.9k Views
Hi guys, I have built a PWA that calls the javascript API navigator.geolocation.getCurrentPosition which prompts the user for location access when the Safari permission is set to Ask. This is the correct behavior and works as expected when open in Safari. However when added to the Home Screen and running with a display mode of "standalone", the location alert does not open on my phone (iPhone 13 mini / iOS 15.1.1). And the call never times out. Then if I switch from the PWA to Safari the location alert / prompt is suddenly showing in Safari. So it seems that the alert is targeting the wrong "tab". This does not happen if the PWA display mode is "browser" or "mimimal-ui" with either of those it behaves normally. I can only replicate this on my phone (iPhone 13 mini / iOS 15.1.1). I have also tested on various older phones (15.1.1 and 14.7) as well as several emulators and they all behave as expected. It is possible this is a obscure setting on my phone but it does feel a lot like an iOS Safari bug.
Posted
by
Post not yet marked as solved
6 Replies
2.9k Views
I have given location permission for the app i'm developing. Now i need to reset location permission and want to see the permission pop-up. I have tried tccutil reset and /var/db/locationd/clients.plist is not accessible. Both are failing even with sudo. Please suggest any methods.
Posted
by
Post not yet marked as solved
3 Replies
996 Views
I am comparing results from LocationsServices (particularly speed) with velocity reported by my ublox NEO-M9N receiver. I am 99% certain that I have correctly obtained the UTC time associated with each fix/speed from the receiver. I then compare that time series with the time series of speeds vs time from Core Location services. To align the 2, I must apply a time scale factor of ~ 0.6% to one to allow good alignment between the 2 time series. This is saying that time from Core Location is progressing at a different rate than the UTC time as reported by the GPS receiver. The Date/timestamp reported as part of CLLocations looks like a UTC. But, right now, I can't find anything definitive that it is a UTC. There are different flavors of UTC; the Naval Observatory has one flavor and NIST has another. Can anyone point me to definitive documentation clear stating what time is reported in the Date/timestamp in the CLLocation reported by LocationServices? I am hard pressed to believe that 2 versions of UTC could be so different. Thanks
Posted
by
Post not yet marked as solved
4 Replies
1.1k Views
Hi, I updated Xcode to version 14.3 (14E222b) which comes with iOS 16.4 Also macOS has the latest update Ventura 13.3 (22E252) Mac hardware is a MacBook Pro M1 Max After the update in MapKit (Not SwiftUI) MKPolylineRenderer won't render any more in an iOS 16.4 emulator (but still works fine on a physical device). In the terminal I see many lines like this: "Compiler failed to build request" "PSO error: reading from a rendertarget is not supported" I don't see these lines on a physical device and the polylines render fine on a physical device. Has anybody else seen this? Anything I can do? Thanks Gerd P.S. workaround: works for me when I choose the target "My Mac (Designed for iPad)"
Posted
by
Post not yet marked as solved
2 Replies
1.4k Views
Hello, I'm trying to figure out how to detect when user stops scrolling (panning) the map. The problem: I have a MapAnnotation that I want to always keep in the centre, even is user is panning/scrolling the map. When map is open first time, the original annotation location is user's current location. I request the name of the location to display it on top of the annotation. when user moves the map around, I want to track when he stop this action and select a location in the centre of map's new region and display the a location's name on top of the annotation I can't use .onChange() because region centre changes constantly as user moves the map, because it causes to many requests for location's name DragGesture .onEnded() is never called, so I have no idea when customer stops moving the map So my question is - how to detect in this case when customer stopped moving the map? Have anyone faced the same problem? Any ideas how to solve it?
Posted
by
Post not yet marked as solved
0 Replies
417 Views
Hello team, for our app we are utilizing location services and ibeacon services along with background mode, we request users to choose Always Allow access and in our code we use startMonitoringSignificantLocationChanges and Geofencing. When it goes to background we stop fetching the location…but we see Apple Location notification popup is being shown on.. From the attached screen shot we understood that our application has requested Locations in background for these many times and its showing map locations as well. Our users are getting annoyed with these popups. I would like to understand . On what basis apple shows these notifications to user, how they fetch the information. Is that our application hits for location and apple grabs it or when we choose always access automatically system makes these calls and saves information. Can we prevent this popup from displaying to users via code / iPhone settings ? Please clarify.
Posted
by
Post not yet marked as solved
1 Replies
766 Views
Hello, I have a few questions regarding the new CLMonitor that would be really helpful to hear answers to: How many conditions can the CLMonitor monitor at once? The analogous CLRegions had a limit of 20 in iOS 16. Is there a limit, or a larger limit with CLMonitor? What's the range of radii that CircularGeographicCondition can monitor? With CLRegions, we observed a functional minimum radius of 100m. Finally, the session video notes that CLMonitor events can arrive unpredictably: can any further elaboration be given on these events? When might there be more or less predictability of these events? Thanks! Liam
Posted
by
Post not yet marked as solved
0 Replies
342 Views
one day, i found my app doesn't show authorization dialog on my phone(iOS16.2), but will prompt on other phone. and the App "Settings -> Privacy -> Location" is allowed. i restart my phone, reinstall my App, still allowed. i guess, iPhone will store the app's prompt choice in iCloud or somewhere else?
Posted
by
Post not yet marked as solved
3 Replies
590 Views
When running Xcode 15.0 beta, and targeting watchOS 10.0, I'm getting the following error message when I invoke the object. I am using the line import CoreLocation at the top of my ContentView.swift directly below the line import SwiftUI. 'CLMonitor' is unavailable in watchOS
Posted
by
Post not yet marked as solved
2 Replies
656 Views
We are no longer getting a different value for trueHeading vs magneticHeading with the new ipad pro 6th generation M2 device. The M1 iPad Pro works and other iPad and iPhone devices work fine. Apple told one of our users that we need to update our app - but we did only 4 weeks ago. Has something changed to the use of the CLHeading api for the M2 chip?
Posted
by
Post not yet marked as solved
2 Replies
652 Views
Hello, I am currently working on an app for a client. The concept is straightforward: the app allows users to view the location of other users on a map, even when they are not actively using the app. However, this feature is limited to a selected group of people, specifically those who have joined the same group as the user. To achieve this, I collect location data in the background. The primary objective of this app is to connect users with nearby individuals who can assist them with tasks or jobs. However, I encountered an issue during the app review process. The review team deemed it inappropriate for deployment because it displays users' locations on a map, without the necessary privacy safeguards in place. Nevertheless, the main purpose of the app is to allow users to be visible on the map, and people who download the app intend to be included in this display. Here is the comment provided by the reviewer: Your app enables the display of nearby users' locations on a map, but does not have the required privacy precautions in place. Additionally, here is the specific requirement: Require users to manually check-in each time they wish to have their location displayed on a map; there should be no option to enable automatic check-ins. If I understand correctly, this means that users would be required to open the app in order to appear on the map. However, this contradicts the purpose of the app, as users prefer to be passively visible without actively opening the app. On the other hand, I have noticed tracking apps like Life360 and others that provide similar functionalities. They display users' locations on a map in near-real-time. What am I missing to ensure the validity of my app? The reviewer mentioned being unable to provide any hints, so I am hopeful that someone here can assist me.
Posted
by
Post not yet marked as solved
0 Replies
572 Views
The iOS'location service is used to track the accurate location of the user and the blue arrow become active and it show at the top of the screen. I want to question that : I want to develop an app which will receive location Update every 15 minutes by executing it at background mode. There is a way to hide the blue arrow between 1-15 minutes in order to make clear in the user that the app does not use the location service the time between 1-15 and only use it every 15 minutes to update it? Thank you very much, in advance!!
Posted
by
Post not yet marked as solved
2 Replies
2.1k Views
Hey guys, I recently started using Swiftui and would like to make a small app for my dad to use as a travel journal as my first project. He can create trips and then create multiple steps in a trip. When creating a step he should be able to set a location. Finding the location from the user is no problem. But now I also want to have the function to tap on the map and set a pin at a random location to get the coordinates (like google maps for example). Unfortunately I can't figure out from the documentation if there is a simple way to do this. import SwiftUI import MapKit struct StepLocationView: View { @EnvironmentObject var locationManagement: LocationDataManager @State private var position: MapCameraPosition = .automatic var body: some View { VStack { Map(position: $position) { UserAnnotation() } .navigationTitle("Search your location") .navigationBarTitleDisplayMode(.inline) .toolbarBackground(.visible, for: .navigationBar) .toolbarBackground(.ultraThinMaterial, for: .navigationBar) .edgesIgnoringSafeArea(.bottom) .onAppear{ position = .region(locationManagement.region) } .mapStyle(.standard(elevation: .realistic)) .mapControls { MapUserLocationButton() MapPitchButton() } } .background(Color.white) } } import SwiftUI import MapKit class LocationDataManager : NSObject, ObservableObject { @Published var location: CLLocation? @Published var region = MKCoordinateRegion() private let locationManager = CLLocationManager() override init() { super.init() locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager.distanceFilter = kCLDistanceFilterNone locationManager.requestWhenInUseAuthorization() locationManager.startUpdatingLocation() // info.plist has to be updated locationManager.delegate = self } } extension LocationDataManager: CLLocationManagerDelegate { func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { guard let location = locations.last else { return } self.location = location self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude), latitudinalMeters: 5000, longitudinalMeters: 5000) }; } I really appreciate your help, Marius
Posted
by