Since iOS 26, the Apple Maps share sheet no longer provides a com.apple.mapkit.map-item attachment when sharing a location to my Share Extension.
Additionally, on real devices the shared URL is now a short link (https://maps.apple/p/...), which does not contain coordinates. On the simulator, the URL still includes coordinates (as in previous iOS versions).
I'm trying to find the official or recommended way to extract coordinates from these new short URLs.
Environment:
Devices: iPhone (real device) on iOS 26.0 / 26.0.1
Simulator: iOS 26.0 / 26.0.1 simulator (behaves like iOS 18 — see below)
App: Share Extension invoked from Apple Maps -> Share -> my app
Xcode: 26.0.1
Steps to Reproduce
Open Apple Maps on iOS 26 (real device). Pick a POI (store/restaurant). Share -> choose my share extension.
iOS 18 and earlier
(lldb) po extensionContext?.inputItems
▿ Optional<Array<Any>>
  ▿ some : 1 element
    - 0 : <NSExtensionItem: 0x60000000c5d0> - userInfo: {
    NSExtensionItemAttachmentsKey =     (
        "<NSItemProvider: 0x600002930d20> {types = (\"public.plain-text\")}",
        "<NSItemProvider: 0x600002930c40> {types = (\"com.apple.mapkit.map-item\")}",
        "<NSItemProvider: 0x600002930bd0> {types = (\"public.url\")}"
    );
}
iOS 26
(lldb) po extensionContext?.inputItems
▿ 1 element
  - 0 : <NSExtensionItem: 0x6000000058d0> - userInfo: {
    NSExtensionItemAttachmentsKey =     (
        "<NSItemProvider: 0x600002900b60> {types = (\"public.url\")}",
        "<NSItemProvider: 0x600002900fc0> {types = (\"public.plain-text\")}"
    );
}
URL looks like: https://maps.apple/p/U8rE9v8n8iVZjr
On simulator iOS 26 same missing map-item provider - but the URL is still long and contains coordinates, like this: https://maps.apple.com/place?coordinate=37.334859,-122.009040&name=Apple%20Park&..
Issue
The short URLs (maps.apple/p/...) cannot be resolved directly - following redirects ends with:
https://maps.apple.com/unsupported
The only way I've found to get coordinates is to intercept intermediate redirects - one of them contains the expanded URL with coordinate=....
Example of my current workaround:
final class RedirectSniffer: NSObject, URLSessionTaskDelegate {
    private(set) var redirects: [URL] = []
    func urlSession(_ session: URLSession,
                    task: URLSessionTask,
                    willPerformHTTPRedirection response: HTTPURLResponse,
                    newRequest request: URLRequest) async -> URLRequest? {
        if let url = request.url {
            redirects.append(url)
        }
        return request
    }
}
Then I look through redirects to find a URL containing "coordinate=". This works, but feels unreliable and undocumented.
Questions
- Was the removal of com.apple.mapkit.map-item from the Maps share payload intentional in iOS 26?
 
If yes, is there a new attachment type or API to obtain an MKMapItem?
- What’s the official or supported way to resolve https://maps.apple/p/... to coordinates?
 
Is there any MapKit API or documented URL scheme for this? Is intercepting redirect chains the only option for now?
- Why does the iOS 26 simulator still return coordinate URLs, while real devices don't?