Plugin Directory

Changeset 2317588


Ignore:
Timestamp:
06/03/2020 06:47:04 PM (6 years ago)
Author:
pushnami
Message:

Skips file creation when in use custom manifest mode for PWA for WP.

Location:
pushnami-web-push-notifications/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pushnami-web-push-notifications/trunk/includes/class-pushnami.php

    r2317096 r2317588  
    8585    public static function writeManifestJson($force = false, $showErrors = true)
    8686    {
     87        // bail if using custom manifest (PWA for WP)
     88        $useCustomManifest = get_option('pushnami_use_custom_manifest');
     89        if ($useCustomManifest) return;
     90
    8791        $gcm_sender_id = "".get_option('pushnami_gcm_id');
    8892        if (!$gcm_sender_id) $gcm_sender_id = PUSHNAMI_DEFAULT_GCM;
     
    103107    public static function writeServiceWorker($force = false, $showErrors = true)
    104108    {
     109        // bail if using custom manifest (PWA for WP)
     110        $useCustomManifest = get_option('pushnami_use_custom_manifest');
     111        if ($useCustomManifest) return;
     112
    105113        $api_url = get_option('pushnami_api_url');
    106114        if (!$api_url) $api_url = PUSHNAMI_DEFAULT_API_URL;
     
    338346    public static function installFunctions()
    339347    {
     348        self::checkForPWAforWP();
    340349        self::writeServiceWorker(false, false);
    341350        self::writeManifestJson(false, false);
     351    }
     352
     353    /**
     354     * Update hook
     355     * @return void
     356     */
     357    public static function update()
     358    {
    342359        self::checkForPWAforWP();
     360        self::writeServiceWorker();
     361        self::writeManifestJson();
    343362    }
    344363
     
    352371            update_option('pushnami_use_custom_manifest', false);
    353372        }
    354     }
    355 
    356     /**
    357      * Update hook
    358      * @return void
    359      */
    360     public static function update()
    361     {
    362         self::writeServiceWorker();
    363         self::writeManifestJson();
    364         self::checkForPWAforWP();
    365373    }
    366374
  • pushnami-web-push-notifications/trunk/pushnami.php

    r2317096 r2317588  
    77Plugin URI: https://wordpress.org/plugins/pushnami-web-push-notifications
    88Description: Capture & Monetize Your Audience. The leader for web push, mobile push notifications, and email. Trusted by more than 20K brands to send 10 billion messages per month.
    9 Version: 1.0.2
     9Version: 1.0.3
    1010Author: Pushnami
    1111Author URI: https://www.pushnami.com
  • pushnami-web-push-notifications/trunk/readme.txt

    r2317096 r2317588  
    5959== Changelog ==
    6060
    61 = 1.0.2 =
     61= 1.0.3 =
    6262* Adds plugin extension compatibility for PWA for WP
    6363
Note: See TracChangeset for help on using the changeset viewer.