Post marked as unsolved
489
Views
I've noticed a big difference in quality between Apple Maps and MapKit Satellite image quality. Apple Maps images are so much clearer and you can zoom in further. In the area near me it really fuzzy and if you zoom in all the way you end up with no tiles at all. Is it possible I'm missing a setting that would enable better images? Or is apple just saving the best images for their own app?Here is an example of the images side by side:http://i.imgur.com/w4s388p.jpg
Post marked as unsolved
64
Views
I just want to ask my user for a one-time location permission. However, when I click the button that activates the permission dialog, it disappears after one second.
This has been brought up before - https://stackoverflow.com/questions/61993353/request-user-location-permission-in-swiftui - however I am already following this advice and storing @ObservedObject var locationManager = LocationManager() as a class variable in my view.
View }
Model }
Any idea what the problem is?
Post marked as unsolved
35
Views
Which UWB chip is recommended by Apple to be used, if one wants to build an interactive Airtags device? Is there a support for 3rd party tag vendors at all?
Post marked as unsolved
27
Views
In my application I am trying to use Geocoder, but only one value is always returned when requested. This cannot be, since many addresses must be displayed by the name of the street. I would like to know if there is a solution to this problem or should I use a different tool?
Code
CLGeocoder *geocoder = [[CLGeocoder alloc] init];
[geocoder geocodeAddressString:@"Хользунова" completionHandler:^(NSArray* placemarks, NSError* error)
{
if (error)
{
return; // TODO: handle error
}
NSLog(@"Count placemarks: %@", @(placemarks.count));
for (CLPlacemark *placemark in placemarks)
{
NSLog(@"Placemark: %@", placemark);
}
}];
Post marked as unsolved
52
Views
To comply with the privacy principle of data minimisation, we want to limit geo-location tracking based on a start and stop date. We're facing an issue with starting and stopping location monitoring when the app is terminated/force-quit by user.
So far we have tried: Background silent notification sent by the server to to trigger. The problem is that app force-quit by user won't receive this silent notification.
Integrate Notification service extension. The service extension receives notifications, but we haven't been able to trigger starting or stopping location monitoring while the app is running in the background.
Enable background fetch, this schedule is decided by iOS, sometimes half day, sometimes more than 1 day or never. So this solution is unpredictable for app.
Is there a stable solution to one of the problems we faced in1-3 above, or is there a better way of solving this problem?
Post marked as unsolved
28
Views
My App is currently using Corelocation framework to capture locations of user. But for the next release we are planning to remove location capturing feature from the App. We have removed all the codes, capabilities associated with the same. But, "Location" permissions are not getting removed from iPhone Settings of my App. Only doing a fresh installation "Location" permission is not showing. Please help me on this. Thanks in advance
Post marked as unsolved
58
Views
Hello All:
I am working on an APP that connects to an IOT device via BLE Library, and I set a bunch of keys in my info.plist the library requires:
Privacy - Bluetooth Always Usage Description
Privacy - Bluetooth Peripheral Usage Description
Privacy - Local Network Usage Description
Privacy - Bluetooth Always Usage Description
Privacy - Location Always and When in Use Usage Description
Privacy - Location Always Usage Description
Privacy - Location Usage Description
Privacy - Location When In Use Usage Description
but when I start the App from XCode, it does not ask for the "Local Network" authorization, and in the Privacy settings on the iPhone the App is not listed on the Local Network Screen, nor does Local Network appear when I look at the App properties.
Can anyone make a suggestion?
Thanks!
Post marked as unsolved
59
Views
I have to send the location every 2 minutes to a server for many hours. I wouldn't want to set [locationManager setAllowsBackgroundLocationUpdates: true] to save power.
Tasks created by beginBackgroundTaskWithExpirationHandler with an NSTimer inside, terminate shortly after iphone goes into sleeping mode; so it's not good.
It does not seem appropriate to use Background Fetch because it is uncertain in terms of timing.
Is the only solution the first?
Could it not be possible to set a periodic event that activates the app for a limited task (such as for notifications)?
Thank you
Post marked as unsolved
2.9k
Views
Hi!I noticed a strange behavior on MapKit when using the iOS 11 clustering feature.If you add some annotations on a map (with same clusteringIdentifier and same displayPriority) MapKit will correctly merge together annotations that are close.The problem is that if you remove all the annotations and then you add them back the map will no more merge the annotation together. It’s like the clustering feature simply stop working.I don’t really know if it is a bug or if I miss something.Someone else have noticed this?Alan
Post marked as unsolved
69
Views
Hello,
I wanted to ask and see if I could get some help on an application that I am making using MapKit. I am trying to make a function in which I pass in a to: and from:, both which take in a CLLocation2D. Inside the function I try to make a directions request for the destination and output directions onto the screen. However, nothing i try has made the function run the way I want it to. The screen just stays there displaying the user location, but not actually doing any mapping to the destination coordinate I pass into the function.
Post marked as unsolved
50
Views
Hello all:
I am testing an app that uses a BLE library to connect to an IOT device. The Library requires both Bluetooth and Location services, so I added entries to the info.plist file. On my iPhone when I go into the App settings I see BT enabled, but under Privacy-Location Services, the App is not there. I am thinking I added the entries to info.plist incorrectly? Under "Information Property List" I added:
Privacy - Bluetooth Always Usage Description
Privacy - Location Always Usage Description
and then I also added:
Required Device Capabilities
Item 0: Bluetooth Low Energy
Item 1: Location Services
Thanks for any and all input
Post marked as unsolved
86
Views
I checked it with iOS 14.1 and it seems to work alright. Each time I update location from Xcode it updates alright on iOS simulator's core location (when I refresh the location manager for update). But with iOS 14.2 it always gives location that was changed for first time.
Post marked as unsolved
254
Views
Hello,
I’m writing an app that records the position of the user at all time (when he requests it!).
I have two questions.
I’ve read the doc, and found this
Note: When a user disables the Background App Refresh setting either globally or for your app, the significant-change location service doesn’t relaunch your app. Further, while Background App Refresh is off an app doesn’t receive significant-change or region monitoring events even when it's in the foreground. and this
Important: A user can explicitly disable background capabilities for any app. If a user disables Background App Refresh in the Settings app—either globally for all apps or for your app in particular—your app is prevented from using any location services in the background. You can determine whether your app can process location updates in the background by checking the value of the backgroundRefreshStatus property of the UIApplication class. First question: Why my app does not appear in Background App Refresh even though I use the significant location change API?
Second question: I tested the doc’s statements, and found out my app was revived after being killed when a significant location change occurred. Does anybody know if the doc is out-of-date, or if it never was accurate? (Or if I misunderstood something!)
Post marked as unsolved
124
Views
Has anyone else discovered CoreLocations "NullIsland" print out?
I recently came across this easter-egg-esque message printed from my CLLocationManager in simulator and device (iOS 14.4.2) in some of my workout API code.
2021-04-10 08:30:11.547947-0500 AppName[28506:1222419] [Client] {"msg":"#NullIsland Either the latitude or longitude was exactly 0! That's highly unlikely", "latIsZero":0, "lonIsZero":0}
I was banking on CLLocationManagers caching/sharing the 'location' property and cheating a little not passing my 'lastLocation' data point from one area of code to another and just doing CLLocationManager().location. Oddly enough, when I am attached with a debugger and then PRINT that object via lldb po location, it is populated with non-zero lat/long.
I could refactor my code to pass the location property throughout my code, but if the value isn't really NullIsland, I'm not sure if it is worth the trouble.
Anyways, this message feels misleading because lat/log is non-zero. I would expect this message to be printed when returning NullIsland OR when returning nil itself.
Here is the gist - https://gist.github.com/edorphy/930dfbe73d4c471d4cd7a9668048b760
Post marked as unsolved
106
Views
Hello everyone.
Is it possible to track in which direction that a user is pointing while wearing an Apple Watch (in 3D space and in relation to true north)? And if so, which series of Apple Watches supports the hardware required to do this?
I already did an iPhone prototype that can detect in which direction the phone is pointing (using quaternion readings from Core Motion), but am now looking to move this over to a watchOS app.
I tried to find this information from Apple and online, but was not able to. Any help would be much appreciated!