• Extensions
  • Progressive Web App (PWA) and Push Notifications

iPurpl3x Nope, neither are necessary! It uses the Push API, which is a part of the service worker system being introduced into browsers.

6 days later

Dear @askvortsov ,

Something from this extension is making my flarum forum to break in old browsers.
I can confirm this after testing with the following browsers;

  1. Microsoft Edge v44.18362.449.0
  2. Google Chrome v58.0.3029.83

When the extension is active it breaks on page load for everyone and renders a pure HTML which says;
"Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error. " then All Discussions appear under in pure HTML with no CSS.

Meanwhile, when the extension is disabled, my flarum forum loads just fine.

Edit:
To satisfy my curiosity and further confirm that its not only on my setup, I tested it on Connectome

    Operator How much market share does that version of Google Chrome and older actually take up? I mean Chrome is on version 83+ and nothing older than 83.0.4103 is supported by Google, further Google has released several critical security patches since version 58.

    As for Edge that's a slightly larger issue because of the fact that "regular" edge is still a pretty big thing at the moment (although Edge Chromium is quickly taking over)

      tankerkiller125 I totally agree with you on this. I am just concerned because Flarum's Discuss loads well in the said browser and my flarum forum also loads well when i disable the extension.

      askvortsov Don't stress yourself too much on this, as @tankerkiller125 said, if these browser vendors do not support them, who are we to do so.

      This ext worked really well on my forum, but not sure if its a bug, when i already uploaded an image for logo, once i want to change the logo, it wont let me change the logo. I have removed all existing logos and uploading the new logo, but the image will be uploaded as the previous images. Tried to cleard the cache but the logo still wont change, i mean the 1st uploaded logo not replaced by the new one

        • [deleted]

        snfansclub Yes, I experienced this also. In the end, I landed up having to clear the cache (including browser cache), renaming all uploaded files (and also deleting them from the assets folder). Finally got it working, but seeing as nobody else mentioned it, I thought it was just me 🙂

        When i press Like:
        [2020-06-30 07:10:46] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getStatusCode() on null in /usr/share/nginx/akr-developers.com/vendor/askvortsov/flarum-pwa/src/Listener/SendPushNotifications.php:112

          I get 500 on /api/pwa/push 🙁

          Edit: this could be an issue with Microsoft Edge. I don't get that on other devices

          wloot if (!$report->isSuccess() && $report->getResponse() && in_array($report->getResponse()->getStatusCode(), [403, 404, 410])) This works for me.

          Does this app need to be updated each time Flarum gets a new revision?

          I am thinking of installing but worried it may break the PWA for users on each update.

            18 days later

            Hey, I enabled push notifications on the browser and through Flarum, but don't recieve push notifications (tested on Chrome and Edge both on my PC and through BrowserStack). I configured all the right settings, no idea why it doesn't work. Console doesn't display any errors.

            9 days later

            Gives me error in admin panel, can't even enable the extension. Weird.

              askvortsov I figured. I am currently triying to install php-gmp, but don't know in which directory (php directory or my flarum website directory?) Then will need to install minishlink and finally wpa extension, maybe then it will work.

                tretoko What dB do you have? I had to update to MariaDB 10.2 (from 10.1) for it to work.