• Resolved mddsharp

    (@mddsharp)


    I have this plugin installed and the caching strategy plugin you submitted earlier.

    I made a pwa-config.php in /wp-content/plugins/ with the following in it:

    <?php
    /*
    * Plugin Name: PWA Config
    */
    add_filter( ‘web_app_manifest’, function( $manifest ) { $manifest[‘short_name’] = ‘Carteret NC’; return $manifest; } );

    function get_manifest_update( $manifest ) {
    $manifest[‘start_url’] .= ‘/start/’;
    return $manifest;
    }
    add_filter( ‘web_app_manifest’, ‘get_manifest_update’ );

    When I go to my site and am prompted to install to my home screen, it does fine.

    When I launch my site from the app, it goes to my start_url just fine but then prompts me to add to home screen again even though I have already.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Why are you adding /start/ to the existing start URL? Shouldn’t it be the homepage?

    Thread Starter mddsharp

    (@mddsharp)

    I have a weird site lol

    Some people come for the tourism side which is the homepage, some come for the Buy/Sell/Trade section, some come for local news, etc…

    So, I made a WordPress page with all three of those sections so that the people coming for news and buy/sell/trade wouldn’t have to go through the homepage.

    Thread Starter mddsharp

    (@mddsharp)

    You want me to remove that and see if I get the double prompts?

    Plugin Author Weston Ruter

    (@westonruter)

    Yeah. And share the URL for the site in question.

    Thread Starter mddsharp

    (@mddsharp)

    OK everything is back to default

    https://ccountync.com/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Prompting To Add To Home Screen Twice’ is closed to new replies.