Hi,
I’m looking to transform my wordpress website into a PWA, and your plugin seems to be everything I need, except for one detail : I would need the start_url in the manifest to be dynamic for each user. A specific url is stored in local storage for each user, and this url should be the start_url for this user when he downloads the PWA. Is that possible with your plugin ? Is there for example a hook that could be used that would generate a manifest dynamically for a user when he visits the website ?
Ideally, I would like for some data from local storage to be “transferred” when the user downloads the PWA, but that might not be necessary since all this data is set into local storage when the dynamic start_url is visited (so I imagine taking care of question n°1 would simplify question n°2…)
]]>Hello We have problem to have pop up bar with app download at the bottom displayed on IOS Iphone.
On the smartphones and Android it works fine. But we’ve checked it on 4 different iphones and can’t get it to work. It just doesn’t show up.
Is there any solution for it?
Thank you
]]>Hello,
I am experiencing an issue with the PWA plugin on my WordPress site. On the login page, the following error appears in the browser console:
Uncaught SyntaxError: Unexpected token '<' (at pwa-register-sw.js?ver=1.7.74:1:1)
This error is occurring on my website: https://businext-temp-develop.go-vip.net/login/?redirect_to=https%3A%2F%2Fbusinext-temp-develop.go-vip.net%2Fwp-admin%2F.
It seems that there may be an issue with the pwa-register-sw.js file when it is loaded/generated. The error appears right at the start of the file, which suggests it might not be loading as expected.
Steps to Reproduce:
1. Visit the login page of the website at the URL provided.
2. Check the browser console for errors.
Environment:
? WordPress Version: 6.6.3
? PWA Plugin Version: 1.7.74
? Browser: Chrome
]]>Hi,
I have a really strange issue with your plugin. Firstly default banner wasn’t showing at all but I solved it by enabling custom banner. And custom banner only shows on larger screens. If I preview it in chrome emulator on anything less than imac mini the banner is not showing. Looking at your config you have display:none added to banner css by default and then your code either adds or not display: block to the actual element on page load. Why is it NOT adding it on smaller screens where it is in fact MOST needed. Can you please advise and/or troubleshoot.
https://dev.hotspotsvanuatu.com/
To replicate the issue just look at the site in desktop, then turn on inspect element in chrome and enable emulator and reload in any of the mobile views and observe element style of div id “pwaforwp-add-to-home-click”. Has display: block on large screen and does not have it on small screen.
I experimented with checking and unchecking “display on desktop” in the settings of custom popup feature but it didn’t make a difference.
HI, I Need help please, my website show Default app icon on browser what happens
]]>Hi
Magazine3, I am a user in Chinese Mainland.
I enabled the desktop display banner, but I don’t know why it didn’t show up.
The loading speed of the entire script is very slow. Is this a network issue or another problem?
If there are no other scripts running on my server, can I load them onto my own server?
If so, how can I proceed?
]]>Hello, in the Google results, the icon of my site is displayed as the default app, and I feel that it must be from the plugin, even though I uploaded the logo, I recently encountered this error, it was not like this before.
you can search this title “???? ?????”
]]>I’m using the last version 1.7.72 of the plugin. There is a problem with saving settings, especially with “Remove pwa for logged in users” option. It’s always checked and my PWA doesn’t work when a user is logged in.
]]>Hi,
I really like your plugin but I want to push more users towards PWA. Would it be possible to add an option to control the frequency of the native popup?
For example to show 3 times in 24 hours?
Thank you for the best plugin! However, for iOS, an install prompt button should be added. I have a code snippet here that you can use:
<div class="daftplugPublicIosOverlay">
<div class="daftplugPublicIosOverlay_background"></div>
<div class="daftplugPublicIosOverlay_content">
<div class="daftplugPublicIosOverlay_header">
<div class="daftplugPublicIosOverlay_title"><?php printf(__('Add %s to Home Screen', $this->textDomain), $appName); ?></div>
<div class="daftplugPublicIosOverlay_close"><?php esc_html_e('Close', $this->textDomain); ?></div>
</div>
<div class="daftplugPublicIosOverlay_main">
<p class="daftplugPublicIosOverlay_message"><?php printf(__('For an optimized experience on mobile, add %s shortcut to your mobile device\'s home screen', $this->textDomain), $appName); ?></p>
<div class="daftplugPublicIosOverlayStep -one">
<img class="daftplugPublicIosOverlayStep_icon" src="<?php echo plugins_url('pwa/public/assets/img/icon-iosstep1.png', $this->pluginFile); ?>"/>
<div class="daftplugPublicIosOverlayStep_desc"><?php esc_html_e('1) Press the share button on your browser\'s menu bar', $this->textDomain); ?></div>
</div>
<div class="daftplugPublicIosOverlayStep -two">
<img class="daftplugPublicIosOverlayStep_icon" src="<?php echo plugins_url('pwa/public/assets/img/icon-iosstep2.png', $this->pluginFile); ?>"/>
<div class="daftplugPublicIosOverlayStep_desc"><?php esc_html_e('2) Press \'Add to Home Screen\'.', $this->textDomain); ?></div>
</div>
</div>
</div>
</div>
i found this code in the premium plugin “daftplug-instantify” wich is no more supported.
thanks
]]>It’s not possible anymore to generate an Cloud Messaging API key in firebase because is depricated. https://firebase.google.com/docs/cloud-messaging/migrate-v1?hl=en&authuser=0&_gl=1*rhrks6*_ga*MTkwMDMwOTE3My4xNzE2MTU4MTky*_ga_CW55HF8NVT*MTcxOTA3ODQ5NS42LjEuMTcxOTA3ODk3My42MC4wLjA.
]]>You forgot to change the stable tag in readme.md.
]]>Hi,
I tested your plugin a longtime ago but don’t use it now.
I have pwa_token_list in my database and read on support forum that it’s linked with push notification.
But it is table used only by your plugin because I use Webpushr for notification.
If the table is only linked to your plugin, then I can delete it.
If you can confirm?
Thanks
]]>I had finished building my website to be used as a PWA, but when I installed it on my phone for testing, the only icon which shows on my Android device is the grey Default APP icon. My icon is the correct 192×192 size and is linked in the PWA setup page.
Any thoughts on why this has occurred?
]]>Hello. According to Google Developer Tools “ServiceWorker registration failed: TypeError: Failed to register a ServiceWorker for scope (‘https://collectiblesandmoreinstore.com/’) with script (‘https://collectiblesandmoreinstore.com/pwa-sw.js’): ServiceWorker script evaluation failed”
]]>Hi,
I have been using your plugin for quite a long time, but recently the Add To Homescreen banner has stopped appearing on the devices and browsers I use (Samsung J6 Android phone, iMac with Chrome, Firefox, and Brave(phone only)). I don’t know when this started unfortunately because its not something I regularly check. I have tried clearing cache (browser and using the Litespeed Cache plugin Purge All) and cookies and altering settings in the plugin, and deactivated and reactivated the plugin. I also have a clone of my site which is virtually identical (just some minor settings, page design and small bits of php code in child theme functions and style.css that differ, and some inactive plugins) where the banner does appear on the same devices and browsers, except Firefox (I tried deactivating the same plugins on the main site and it made no difference so there is no plugin conflict).
In addition, when I go to the browser settings on the phone, the Install option does not show on the main site (sentlive.com) but does show for the cloned site (staging.sentlive.com) on Chrome and Brave. With Firefox it does show that option on both but it doesn’t actually install the app, just adds it to the homescreen (no entry in the Apps list). I have compared the manifests and there is only one difference (other than the url) – in the main site file there is an additional line, “gcm_sender_id”: “482941778795” following “scope”: “https:\/\/sentlive.com\/”, – but having looked into this I don’t think that has any effect, but please let me know if I need to edit this.
Having looked at the plugin files they are identical on both sites, as are the settings, except for the following, which I think might be the cause of the problem:
The cloned site has this file – pwa-sw.js – in the root of the site, but it is missing on the main site. I had a look at it and it seems to relate to caching, but I think this file might have something to do with the fact that I have the OneSignal plugin deactivated on the clone but active on the main site (I can’t activate it on the clone without adding the clone site to OneSignal as well; it throws errors otherwise) – I have the compatibility option for OneSignal checked on both sites though. This is reflected in the first line of the pwa-register-sw.js file which is as follows in the two sites:
Main site: var swsource = “https://sentlive.com/OneSignalSDKUpdaterWorker.js”;
Clone site: var swsource = “https://staging.sentlive.com/pwa-sw.js”;
Initially there were also some other major differences in these files, but I deactivated and deleted the plugin and reinstalled, and those differences were gone. I tried copying and adjusting the pwa-sw.js file for the main site, as well as the reference at the top of the pwa-register-sw.js file but this too hasn’t made any difference, so I have reverted to how it was.
Finally, in an attempt to at least temporarily give users the chance to install the app (on mobile Android devices) I added a ‘ClickTo Install our Web App’ element with a class name of .webappinstall which I then put in the plugin settings in the Add To Home On Element Click section, but this does not work either.
I tried deactivating Litespeed Cache but that made no difference. And in the Urls Exclude From Cache List I have https://sentlive.com/wp-content/plugins/litespeed-cache/guest.vary.php (this is on the clone site as well).
I should mention that this is occurring regardless of whether it is the default or custom banner.
I am at my wits end trying to work out what is causing this, so please can you help me fix it? It is of course possible that it is only my devices that are exhibiting this behaviour but I would like some confirmation of at least that – unfortunately I only have access to one Android phone (we all use iPhones) but given that the cloned site works there is something, somewhere in the main site that is causing this – both sites are on the same server – but I just don’t know what to look for or how to find it. I am guessing it might be some sort of javascript issue but I really don’t know.
Please Help!
]]>Warning: Undefined variable $force_rememberme in /home/example/public_html/wp-content/plugins/pwa-for-wp/admin/common-function.php on line 195
]]>
Hi,
When I turn on the PWA for WP & AMP, my site speed is too slow.
https://gyazo.com/0e38e5a8b637a5a26dda94e4526a91c7
What should I DO?
]]>Hello, I have noticed that I get “This site can’t be reached” only for the checkout page. This is happening for desktop and mobile. From different devices.
Mainly in Chrome & Safari browsers [both normal Window and incognito].
I have everything off, I click reset also. The problem still persist
I added the checkout URL to exclude but nothing changed.
in the console I also get “The FetchEvent for “https://domain.com/checkout/” resulted in a network error response: a redirected response was used for a request whose redirect mode is not “follow”.”
When I add a product to the cart a popup appears, when I click on the checkout button, the page is not loading i get “ERR_FAILED”. Also from the mini cart if I click checkout I get the same error.
But if I go to the cart page and then from the cart click proceed to checkout then the page loads normally.
Thanks in advance, Olga.
Hello, I know I’m going to put you in a difficult position, but we want to know which web push plugin your plugin is compatible with. we have options On Signal and Web Push.
Best regards
Adriana
]]>Dear Sir/Madam, since several weeks the icon in Google shows a black circle with the text ‘Default App’. I didn’t change any settings. What’s going wrong?
Warm regards,
Siebren
In response to the European Union’s Digital Markets Act, which aims to bring more openness and competition to digital platforms, Apple has decided to kill PWAs in the EU with their upcoming Safari iOS 17.4.
This will prevent installation of PWAs on the home screen, use of push notifications, background sync and more.
And it will have a global impact beyond just the EU, given that businesses will be far less likely to invest in Web Apps, and PWAs in particular, if iPhone users in the EU cannot use them.
The Open Web Advocacy group is leading the fight against this, working to inform the DMA team of all of the implications of these and other policies on Web development. They are urgently trying to gather testimonials and data from businesses who will be affected by these changes, so that they can give the DMA better information to fight back.
Please visit this page to learn more, fill out their survey about how this impacts your business, and spread the word!
Immediate Action Needed! – Open Web Advocacy (open-web-advocacy.org)
]]>Hello,
does this extension work with woocommerce and allows you to connect to woocommerce while offline?
]]>Hello
I would like to know if it’s possible for the popup to install the PWA to appear on a specific page that is not the homepage. For the popup that appears on iOS devices, which I created myself with custom code, I managed to make it appear only if the user goes to the login page. I would like to do the same with the popup that appears for Android with your plugin.
]]>Hi,
I have install the plugin but i am not able to see the option to install the app, why? can you please help us, So that we can use this future here is link of website https://weccode.com/
]]>Hello
After clicking the save settings button, it takes some time and finally it shows the following message:
This site can’t be reached
The webpage at?https://mysite.com/wp-admin/options.php?might be temporarily down or it may have moved permanently to a new web address.
ERR_FAILED
What is the problem?
]]>Hi,
i was wondering how can I delete plugin completely. I have checked the box regarding complete data erasure before uninstalling, but it seems that service worker is still running. I still have pwa folder in the root wordpress folder and sometimes errors related to manifest pop up in console.
Could you please help me to fix it? Thanks.
Hello, I cannot modify the elements in the parameters as shown in the video, I use a multisite, I do not know if this is what causes the problem
]]>Hi, I’m having issues making the Custom Add to Home Screen Banner show up on desktop and mobile devices. I already made sure I had all the necessary settings in check and I’m not sure what is wrong. I’ve tested on Android and Windows across multiple browsers and the banner never shows up.
Here are the screenshots of my settings.
https://paste.pics/5f16b520bb4e766544bb2d5d585a4770
https://paste.pics/f3770630df61c736eeb35e503793003b
]]>I want to create a button in my Header that would be called “Get the app” that will install the app on the user’s phone. I can create buttons with my theme but what link or shortcode to add as a URL of such a button?
]]>