GoogleChromeLabs / pwa-wp

WordPress feature plugin to bring Progressive Web Apps (PWA) to Core
https://wordpress.org/plugins/pwa/
GNU General Public License v2.0
605 stars 96 forks source link

Lighthouse says "Manifest start URL is not valid" #1137

Closed ned-bs closed 1 month ago

ned-bs commented 2 months ago

Hi there, I couldn't find a document where to start with this plugin. There are many documents around, most of them are way too technical but there is none to lead how to start.

  1. I installed and activated plugin
  2. Set shortname - General Settings
  3. Offline browsing checked - Reading Settings

Then tested if it works via chrome browser. Right click - Inspect- Lighthouse-Analyze page load

I got error message like below. Could you please give simple, step by step installation guide.

https://i.imgur.com/dk6UkOc.png

PWA - INSTALLABLE Web app manifest or service worker do not meet the installability requirements 1 reason

Failure reason -- Manifest start URL is not valid

I also have error for "Manifest doesn't have a maskable icon" but find documentation about it.

westonruter commented 2 months ago

Failure reason -- Manifest start URL is not valid

What's the URL of your site? I need to know what the start_url is set as.

I also have error for "Manifest doesn't have a maskable icon" but find documentation about it.

Good question. This is set in the Customizer (/wp-admin/customize.php), specifically in the Site Identity panel. There is #915 for eliminating the reliance on the Customizer.

westonruter commented 2 months ago

I see you cross-posted your question on the support forum: https://wordpress.org/support/topic/how-to-use-it-72/

Closing that topic as a duplicate.

ned-bs commented 2 months ago

Failure reason -- Manifest start URL is not valid

What's the URL of your site? I need to know what the start_url is set as.

I also have error for "Manifest doesn't have a maskable icon" but find documentation about it.

Good question. This is set in the Customizer (/wp-admin/customize.php), specifically in the Site Identity panel. There is #915 for eliminating the reliance on the Customizer.

Hi Weston, Thanks for reply. Here is my website. I am trying to understand how I should make it right.

ned-bs commented 2 months ago

I have added start url in to a file called site.webmanifest. It it right approach?

westonruter commented 2 months ago

@ned-bs You don't actually need to add a web manifest yourself. The plugin does this automatically. You can see it doing so as follows:

<link rel="manifest" href="https://www.laptop.com.tr/wp-json/wp/v2/web-app-manifest">

That manifest has the start_url set to https://www.laptop.com.tr/ which seems correct.