askvortsov To enable push notifications do I need to have flarum/pusher enabled? Does it work with Websockets?
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.
- Edited
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;
- Microsoft Edge v44.18362.449.0
- 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)
Could you open the console part of inspect element, and share any red error messages?
- Edited
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
- Edited
I get 500 on /api/pwa/push
Edit: this could be an issue with Microsoft Edge. I don't get that on other devices
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.
MikeJones I... Don't think so? There'll probably be some occasional updates necessary, but that shouldn't break PWA.
askvortsov awesome!
One last question for now. Does pwa work with the ads plugin?
MikeJones I haven't tested it, but if there's incompatibilities I'd be happy to look into them
- Edited
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.
Gives me error in admin panel, can't even enable the extension. Weird.
tretoko could you elaborate on what the error is?
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.