-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PMTiles.io demo site fails in Safari Browser running iOS 15.5 in a Simulator #497
Comments
I normally would consider this a "don't care". I am looking out for any other issues with the PMTiles stack (pmtiles generation, data, server, etc etc) Yes, iOS 15.5 is old. See https://developer.apple.com/support/app-store for the latest data on "iOS and iPadOS usage". |
Confirmed I can reproduce in BrowerStack on iOS 15 and a different failure mode 16, for the specific backend demo-bucket.protomaps.com ; others seem to work |
I can reproduce this in local simulator on iOS 15, but have not found a root cause. The failure on demo-bucket.protomaps.com might be specific to the S3-like provider used (http://tigrisdata.com), since other S3 buckets work fine. What storage provider is used for the NPS .pmtiles files that are failing? |
The pmtiles file that @roblabs is testing is runing from an NGINX server with the following config:
|
In your nginx config can you try duplicating these two lines:
Inside the preflight block, e.g.:
The core issue here seems to be that iOS 16+ Safari considers Edit: see https://www.getpagespeed.com/server-setup/nginx/the-pitfalls-of-add_header-in-nginx-solving-inheritance-issues-with-more_set_headers/amp for explanation |
The demo URL that was broken before on iOS 15 and 16 (https://pmtiles.io/?url=https%3A%2F%2Fdemo-bucket.protomaps.com%2Fv4.pmtiles#map=0.5/0/0) should now be working. This was also related to CORS misconfiguration since iOS 15 and 16 send a preflight request. TODO: improve docs about CORS preflighting. |
Issue
While navigating to https://pmtiles.io on very old Safari on iOS versions, the PMTiles demo page does not work.
Background
While randomly testing one of the National Park Service pages that makes use of PMTiles, we found that the PMTiles data was not getting rendered on an iOS 15.5 simulator. Safari on iOS 18.1 simulators & Safari running macOS work fine.
Steps to Reproduce
This is reproducible outside of the NPS infrastructure:
Safari Inspector to the Simulators browser shows this error:
Figure 1: Screen capture of iOS 15.5 at the https://pmtiles.io site
Figure 2: CanMex grays out other countries
The text was updated successfully, but these errors were encountered: