zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.28k stars 279 forks source link

Nginx config: Support for Apple Universal Links #1252

Closed derwaldgeist closed 3 years ago

derwaldgeist commented 3 years ago

We're trying to link our mobile app to our web app, using Apple's Universal Links:

https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html

This requires that a file named apple-app-site-association is served from either the website root or from a subfolder /.well-known. This already works, by placing it in the /public folder.

However, the file has to be served with the MIME type application/json, but currently it is served as application/octet-stream. This seems to be the reason why the Universal Link setup failed on my attempts (I double checked that both the file content and the app are configured properly).

It would be awesome if the Nginx config could be extended so the correct (JSON) MIME type is being used.

(BTW: For Android, we noticed that a .webmanifest file is already supported with the correct MIME type, which is awesome!)

derwaldgeist commented 3 years ago

Never mind. I just learned that the MIME type isn't the problem. The app has to be pushed to the app store at least once to make the entitlements check work. It would still be nice if the correct MIME type would be sent, though.