- In Framer, create a new Code Component file called manifest.json
- Copy/paste the code from
https://gist.githubusercontent.com/maxsteenbergen/827fb731b5745e761d0321fffe2ae057
- Update the keys in the manifest to match your project
- Take special care to update the "start_url" and "scope" to match your published site's url
- [OPTIONAL] Upload an app icon somewhere, or copy your site's favicon url
- [OPTIONAL] Update the icons array in the manifest with the app icon url(s)
- Create a new Code Override file
- Copy the
pwa_override.tsx
file from this Gist, and paste it in your newly created Override file. - Go back to the manifest file in Framer's code editor
- Use the Handshake button in the top right of the manifest's code editor to get the manifest's url
- Open the link in a browser: it will redirect to another page with an error. The new page should have an url similar to
https://framerusercontent.com/modules/<SOME_CHARACTERS>/<SOME_MORE_CHARACTERS>/manifest.js
- Edit the redirected url to end in
.tsx
instead of.js
, and visit that url - If that loads your manifest proper, great! Copy the url.
- In the override file, update the link href attribute in this override with the manifest url you just copied from the browser
- [OPTIONAL] In the override file, update the
appleIcon
href attribute in this override with the app icon url - In Framer's UI, apply the override to the Web Page you want to use as entrypoint for your prototype (usually your site's homepage)
- Add a Prototype Component to the Web Page, and point it to your prototype
- Publish the Site
- Visit the site on your mobile device with either Safari on iOS or Chrome on Android — no other browser
- Save the site to your homescreen
- The site should now be installed on your phone as a proper app, and you should be able to fully test the prototype as if it were a real app
Demo of the result: https://fullscreen-prototype.framer.website
Hi I tried this and had trouble figuring out step 10.
But I'm sure a video with instructions would help greatly in understanding.
Thank you ahead of time and so very much for the time you spent on this as this is the only real guide I found for Web App Manifest for Framer