Gunjan Kadu
Gunjan Kadu

Reputation: 21

VueJs Nuxt PWA not rendering on iphone

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.

Upvotes: 2

Views: 837

Answers (2)

Karn
Karn

Reputation: 11

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.

Upvotes: 0

Ahmad_kh
Ahmad_kh

Reputation: 181

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

Upvotes: 0

Related Questions