• Resolved bbsdev

    (@bbsdev)


    Hi @josevarghese,

    Could you elaborate on when the SuperPWA prompt activation starts kicking in?

    For a while now, I’ve been using SuperPWA for a client project. The intention is to let their users (which are required to sign in) add the site to their homescreen when arriving at the wp-login page. However, the prompt does not appear on that screen whatsoever. After logging in and arriving at the homescreen, that’s when the prompt shows up. This is great, but the client would like to have the prompt show up one step earlier as I mentioned before.

    Any help would be great!

    Kind regards

    • This topic was modified 4 years, 5 months ago by bbsdev. Reason: clarifying and formatting
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @bbsdev

    Good day to you and thanks for trying out SuperPWA. Within SuperPWA, we are excluding the wp-login, wp-admin and preview=true from the PWA caching as those pages will make some issues once it’s cached. Like not loading the latest version of page perfectly well and moreover, those pages need some user interactions/privileges.

    If you still want to add the Add to Homescreen prompt over the login screen, remove wp-login within the file public/sw.php L171. If you are doing the same, kindly don’t forget to remove this even after every plugin update. Hope it helps.

    Thread Starter bbsdev

    (@bbsdev)

    Hi @josevarghese,

    Thank you for your answer! I tried the solution you provided, however it does not seem to have effect on the prompt appearing. Is there another line I should remove?

    Thanks in advance!

    Hello @bbsdev

    I missed to add an information over the last reply. If the login URL is the default WordPress login page, the PWA won’t work as manifest and service worker files are not loading over that page. If the login page is something which is provided by your theme and if the manifest and service worker file are loading perfectly well, then only the prompt will be noticed on the respective page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add to homescreen prompt on wp-login not appearing’ is closed to new replies.