Search code examples
iosjsonmobiledeep-linkingsquarespace

Can you deep link to an app from a Squarespace hosted website?


I want to implement deep linking in my app. I've read that to implement deep linking you need to put a json file in the root of your website which will then redirect users to the app if they are on a mobile device and the app is installed. I have a Squarespace site, but placing the json file in the root folder of the squarespace files doesn't seem to work. I assume this is because I would need access to squarespaces' own root.

So my question is, can I implement deep linking with a Squarespace site? If so, what have I done wrong? If not, is there an alternative solution, or should I create a new website that I have full access to?


Solution

  • I checked with Squarespace support... first rep was decent, but didn't have the depth, so he sent it up the chain.

    Eventual response: Nope, even in their "developer mode" you cannot get the file in the right place with the right MIME type.

    Time to look for a different hosting service, or consider Alex Bauer's comment.

    A couple notes:

    • The file must be on https:// - plain old http:// won't work.
    • The file cannot have an extension - so no .json on the end.
    • The file' MIME-type must be set to application/json. This can be a hassle, as standard web service sets MIME-type by extension.

    Otherwise - it's fairly straight-forward :)