Quick Look Plugin for Mac and Internet Access

I'd like to create a Quick Look extension for a file type for which a location or region on a Map should be shown as preview.

However the MapView would only show a grid without any map. From within the MapKit delegate I can see from the "Error" parameter (a server with this domain can not be found) that this seems to be a network issue. The Quick Look extension seems to have no access to the internet and therefore the MapView can not load any map data.

I've then also done some other tests via URLSession, which also only fails with connection errors.

I haven't seen any limitations or restrictions mentioned in the API documentation.

Is this the expected behavior? Is this a bug? Or am I missing something?

Not having Internet access in a Quick Look extension behaves as expected, in order to protect the user's information.

@Engineer Is this really the case? I mean, this is MapKit, a system component which is under full control of the operating system and which is supposed to be "safe" and trustworthy.

I would assume that system components like MapKit are able to access the internet to fulfil their main purpose. Just like the macOS does this for URLs and "web location" files where Quicklook has no problems in loading the web pages and displays a preview of these just fine.

If you really think that any internet access for QuickLook would be a danger for the user, then you definitely need to stop supporting Quicklook for URLs and web location files.

I guess we can agree, that system components like MapKit and WebKit are not a threat to the user and it won't be a risk for these to access the internet.

Ran into the same problem. MKMapSnapshotter also did not work.

I reported a feedback to add MapKit support in QuickLook Preview.

FB21903617

Quick Look Plugin for Mac and Internet Access
 
 
Q