Post marked as unsolved
108
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!
Post marked as unsolved
356
Views
A user is able to request directions to a specific location using our CarPlay application. We are utilising Maps to achieve this functionality:let placemark = MKPlacemark(coordinate: item.coordinate)
let mapitem = MKMapItem(placemark: placemark)
let options = [MKLaunchOptionsDirectionsModeKey: MKLaunchOptionsDirectionsModeDriving]
mapitem.name = item.mainTitle
if !mapitem.openInMaps(launchOptions: options) {
...
} else {
...
}
This code worked well before iOS 13. It opened the Maps app with directions on the head unit. CarPlay application mirrored the iPhone content. However, because the CarPlay is now decoupled from the actual on-screen content of the iPhone, we can't find a way to force the system to open the Maps app in CarPlay instead of the phone. Does anybody know a way to achieve this?
Post marked as solved
177
Views
Can anyone explain why I need to provide location service capabilities to get BSSID info for the Wi-Fi network device?
Here some notes from CWNetwork header
language
/*! @property
@abstract
Returns the basic service set identifier (BSSID) for the Wi-Fi network device, returned as UTF-8 string.
@discussion
Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX.
@note
BSSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
@seealso
CLLocationManager
/
@property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6);
Post marked as unsolved
3.5k
Views
I was wondering if anyone had any luck figuring out how to enable mouse scrolling to zoom on MapKit JS. I've tried isZoomEnabled but nothing seems to work. I did notice that if I hold down Shift and scroll it works, but would rather users not have to press shift to Scroll.Thanks!
Post marked as unsolved
89
Views
I'm planning to develop an application for iOS that tracks the user's location and would like to better understand the location data (i.e. coordinates) stream that iOS provides to applications.
In particular does the hardware or platform already employ some kind of filtering for the location stream or is this something that the application developers need to do?
Does this differ per iPhone, iOS version or GNSS system used?
Where could I find more detailed info on this?
marko
Post marked as unsolved
214
Views
Hi,
The ARkit is a great tool, I have my small app doing things, and it's fun!
but I wanted to try to migrate from ARWorldConfiguration to ARGeoTrackingConfiguration - https://developer.apple.com/documentation/arkit/argeotrackingconfiguration
and then we can see that this configuration is limited to a couples of USA only cites.
But I can't manage to figure Why and if, in the near future, this will be expanded world wide ?
Post marked as unsolved
176
Views
Hello everyone, I am struggling with the location tracking in my app.
The requirement is to get the location of users without asking them for permission. All of my users are driver.
I am thinking of releasing the app as a Custom App for Business.
Can I achieve my goal if I do so?
Thank you in advanced!
Post marked as unsolved
273
Views
I've added an MKMapView as a subview on one of my viewcontrollers. My app supports 6 languages. The map works alright in terms of showing directions. But the "Legal" text on the map (bottom left) shows as <unlocalized> instead of having a text saying "Legal" in whatever language is selected (or even English).How do I fix this? Thanks.
Post marked as solved
162
Views
I'm looking for how can I display multiple users in my application, the is question what frameworks can I use or what is the main idea how it works, I started by displaying my location but now I want to display the location of the second users.
thanks
Post marked as unsolved
115
Views
Hello all,
I'm Connor and I'm an aspiring developer. I have an alright understanding of SwiftUI, but it's not perfect and by no means complete.
I came from knowing Java, which provides the concept of threads. Which enables the system to almost behave independently of current processes.
My program is basically trying to monitor locations, similar to Apples Region Monitoring system on Swift, but add more functionality, including setting the distance to be notified.
I'm wondering whether more experienced developers than myself could lead me in the right direction.
Ideas that I had so far are: Save real-time location onto Firebase database, then every update of the database checks that location and how close it is to the regions I want to monitor.
Find out if threading is a thing and use that.
Any suggestions you all have.
I'm using CoreLocation to monitor the users location data
and GeoQuery to identify landmarks near the user.
Any suggestions for how I should continue would be really appreciative.
Thank you,
Connor
TL;DR: How do I re-develop apples region monitoring system, but add more functionality?
Post marked as unsolved
226
Views
TLDR: I want to use the watch GPS for location even when the phone is in range.
Previously this was not allowed, but I have recently seen multiple apps that allow you to force their watch extension to use the on-watch GPS for corelocation even when the phone is in range.
I understand there is a battery life impact, but this is critical for my application and I have been unable to find how to do it. Help please!
Post marked as unsolved
514
Views
The memory consumption of MKPolygon has skyrocketed in IOS 13.4, making apps that make use of lots of MKPolygons crash because of out of memory condition.This only happens with REAL DEVICES and NOT IN THE SIMULATOR.The same sample app I link here, when run in an IOS prior to IOS 13.4 device consumes 89.6 Mb, but run in IOS 13.4 consumes 1.29 Gb !!!!https://github.com/vmalonso/TestMKPolygonThis needs a fast fix. Filed bug report n. FB7640504
Post marked as unsolved
145
Views
Hi Everyone,
I have an issue related to the background timer.
I want to allow the users to auto disable and enable the background geo-location via presetting the days &amp; time.
The App has an option where the user can select days of the week such as Monday - Sunday
and can set time range from 12AM - 12PM
Let's say the user selects Monday, Wednesday &amp; Friday
The time range selected is 2PM-6PM
I want to run a background timer, that checks if according to user settings should auto enable or disable geo-location updates in the app.
The issue I'm facing right now, the background timer does not work after 30 seconds when the app is in the background.
Because the app's background timer stops working, I'm unable to enable or disable the setting according to users requirement.
Any suggestion to overcome this issue is much appreciated.
Post marked as unsolved
795
Views
I have an Ionic App which makes my map run in all browsers. It runs in Safari, Chrome, Android Native (Web View for Android), and iOS Native (WKWebview). However, in iOS and and Android Native (Not running Safari/Chrome to go to a website) the titles for annotations aren't shown below the MarkerAnnotation. They are shown for everything else. Any idea why?Safari vs. WKWebView (I'm not sure why the images aren't showing)
Post marked as unsolved
541
Views
Hi!I'm running into an issue I don't quite understand. I'm using an `MKMapView` with a `UILongPressGestureRecognizer`. The problem is that every first touch after a long press seems to be missed or ignored.I've created a tiny little demo view controller in which it's reproducible (I've inlined the code in the post down below):https://pastebin.com/JLBQwt7wAfter the long press target is executed. It first takes a touch on the map view for it to start recognizing gestures again (not just long presses, also all standard map interactions like pan, tilt, zoom, etc.).If I run this exact same code with a different kind of view (a standard `UIView` instead of the `MKMapView` for example), there's no problem.Does anyone have a clue what's going on here?(inline code sample in case that's easier)import MapKit
import UIKit
class MainController: UIViewController {
private let label = UILabel()
private var count = 0
override func viewDidLoad() {
view.backgroundColor = .white
let mapView = MKMapView()
mapView.translatesAutoresizingMaskIntoConstraints = false
label.textAlignment = .center
label.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(mapView)
view.addSubview(label)
NSLayoutConstraint.activate([
mapView.topAnchor.constraint(equalTo: view!.topAnchor),
mapView.leftAnchor.constraint(equalTo: view!.leftAnchor),
mapView.rightAnchor.constraint(equalTo: view!.rightAnchor),
mapView.bottomAnchor.constraint(equalTo: label.topAnchor),
label.leftAnchor.constraint(equalTo: view!.leftAnchor),
label.rightAnchor.constraint(equalTo: view!.rightAnchor),
label.bottomAnchor.constraint(equalTo: view!.bottomAnchor),
label.heightAnchor.constraint(equalToConstant: 50),
])
let gestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(handleMapPress(sender:)))
gestureRecognizer.minimumPressDuration = 0.3
mapView.addGestureRecognizer(gestureRecognizer)
}
@objc
private func handleMapPress(sender: UIGestureRecognizer) {
guard sender.state == .ended else {
return
}
count += 1
label.text = "Presses: \(count)"
}
}