2

My vuejs nuxt portfolio(https://gunjankadu.com/)is not opening on ios phones but working flawlessly on all other devices. On IOS devices only a red spinner is shown and nothing more. What can be done?

A script "tag.js" took time to load, which I have currently disabled but still not working.

Gunjan Kadu
  • 21
  • 1
  • 2
  • Do iPhones even support PWA? Last time I checked, it didn't. Can you check with the official vuejs documentation? https://vuejs.org/v2/guide/ – kissu Sep 27 '21 at 15:43
  • 1
    It looks like there is a script that doesn't resolve. Tags.js timed out after about 3 mins. Though the site works in chrome, it doesn't load completely and the loader is visible on the tab. IOS is probably waiting for this to resolve before it loads the PWA – retrograde Sep 27 '21 at 15:49
  • @retrograde i removed the script "tag.js" still the website is not loading – Gunjan Kadu Sep 28 '21 at 09:58
  • I think I would need to see code before I could make another guess. – retrograde Sep 29 '21 at 10:28
  • I'm having a similar situation with an app I'm developing. It's supposed to have PWA support, but I'm having this issue directly while using the webapp. It loads fine the first time but If I manually change the route in the browser, the new page shows the nuxt loading animation and never stops. Don't know what could be happening. – pablo.raissiguier Nov 10 '21 at 15:07

2 Answers2

0

I had a look on your application and found out two problems. First was about regular expressions, It seems Safari doesn’t support look behind yet. One alternative would be to put the / that comes before in a non-captured group, and then extract only the first group (the content after the / and before the #).

/(?:\/)([^#]+)(?=#*)/

And second is about The minimal-ui viewport property that you can find out more here

Ahmad_kh
  • 151
  • 1
  • 6
0

Look at all your js/vue files especially in store. And see if any variable used is not imported. Nuxt in SPA mode doesn't detect those kind of errors and surprisingly the UI gets stuck on loading only on iOS. Very weird but scratched my brain over it for a day.

Karn
  • 11
  • 1
  • 2