shaunchander / astro-pwa-starter

✨ An opinionated Astro starter for building robust static websites.
astro-pwa-starter.vercel.app
205 stars 44 forks source link

Opens in webview on iOS #3

Closed zainul1996 closed 1 year ago

zainul1996 commented 1 year ago

Installation works on all platform but on iOS, when added to homepage, it opens a webview with address bar. Tried debugging but not too sure what was the issue

zainul1996 commented 1 year ago

Steps taken:

  1. Cloned project, installed dependancies
  2. Pushed to vercel for hosting
  3. Opened the url on iPhone and added to homescreen
shaunchander commented 1 year ago

Hey @zainul1996, can you post a screenshot of what you see when you open the website up on iOS after you downloaded it as a PWA?

zainul1996 commented 1 year ago

@shaunchander this is what I see right after opening the app IMG_4231

shaunchander commented 1 year ago

@zainul1996 this looks like the correct behavior to me?

If you're trying to hide the browser's navigation completely try setting this line (https://github.com/shaunchander/astro-pwa-starter/blob/master/utils/seoConfig.ts#L34) to fullscreen.

zainul1996 commented 1 year ago

@shaunchander yes! that was it! thank you for the quick response