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

askvortsov I am using windows 10 and the (link removed)
(Sorry for my late answer)
Edit: on Android it doesn't work as well

    Lemming8 Hmm, very odd. I can't test this on your site (I'm not an admin), but it should be opening in the same tab. Could you inspect element the administration button and screenshot how it looks, and share that here?

    Nevermind, got it! Fixed in v2.0.3

    daxpandhi Actually I've tried something else that might fix it, could you test again with v2.0.4? Sorry for the delays

    works like a charm, thanks a lot
    edit: nvm, the link in the dropdown still doesn't work, but I can now open the dashboard by opening it in the browser and clicking "open in app"

    i also inspected the button in the app and it gives following output:
    <a href="https://<my-url>/admin" target="_self" active="false" type="button" title="Administration" class="hasIcon"><i class="icon fas fa-wrench Button-icon"></i><span class="Button-label">Administration</span></a>

      Lemming8 edit: nvm, the link in the dropdown still doesn't work, but I can now open the dashboard by opening it in the browser and clicking "open in app"

      WHat happens when you click it? It should refresh the page and open the admin bit. Have you cleared cache? (php flarum cache:clear, or there's a button in the admin dashboard)

        askvortsov ok, I cleared the cache now and reinstalled the app, now it works. Thanks for your help 🙂

        Oh my god, how to fix it 🤣

        [http@archlinux clinux]$ composer require minishlink/web-push
        Using version ^6.0 for minishlink/web-push
        ./composer.json has been updated
        Running composer update minishlink/web-push
        Loading composer repositories with package information
        Updating dependencies
        Your requirements could not be resolved to an installable set of packages.
        
          Problem 1
            - askvortsov/flarum-pwa v2.0.4 conflicts with minishlink/web-push v6.0.3.
            - askvortsov/flarum-pwa v2.0.4 conflicts with minishlink/web-push v6.0.2.
            - askvortsov/flarum-pwa v2.0.4 conflicts with minishlink/web-push v6.0.1.
            - askvortsov/flarum-pwa v2.0.4 conflicts with minishlink/web-push v6.0.0.
            - askvortsov/flarum-pwa is locked to version v2.0.4 and an update of this package was not requested.
            - Root composer.json requires minishlink/web-push ^6.0 -> satisfiable by minishlink/web-push[v6.0.0, v6.0.1, v6.0.2, v6.0.3].
        
        
        Installation failed, reverting ./composer.json and ./composer.lock to their original content.
        [http@archlinux clinux]$ composer update
        Loading composer repositories with package information
        Updating dependencies
        Nothing to modify in lock file
        Installing dependencies from lock file (including require-dev)
        Nothing to install, update or remove
        Generating autoload files
        71 packages you are using are looking for funding.
        Use the `composer fund` command to find out more!
        [http@archlinux clinux]$
        [http@archlinux clinux]$ php flarum info
        Flarum core 0.1.0-beta.15
        PHP version: 7.4.15
        Loaded extensions: Core, date, libxml, openssl, pcre, zlib, ctype, dom, fileinfo, filter, hash, json, mbstring, pcntl, SPL, PDO, session, posix, readline, Reflection, standard, SimpleXML, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, curl, gd, gmp, pdo_mysql, zip
        +-------------------------------+------------------+--------+
        | Flarum Extensions             |                  |        |
        +-------------------------------+------------------+--------+
        | ID                            | Version          | Commit |
        +-------------------------------+------------------+--------+
        | flarum-approval               | v0.1.0-beta.15   |        |
        | flarum-emoji                  | v0.1.0-beta.15   |        |
        | flarum-flags                  | v0.1.0-beta.15   |        |
        | flarum-likes                  | v0.1.0-beta.15   |        |
        | flarum-lock                   | v0.1.0-beta.15   |        |
        | flarum-markdown               | v0.1.0-beta.15   |        |
        | flarum-statistics             | v0.1.0-beta.15   |        |
        | flarum-sticky                 | v0.1.0-beta.15.1 |        |
        | flarum-subscriptions          | v0.1.0-beta.15   |        |
        | flarum-suspend                | v0.1.0-beta.15   |        |
        | flarum-tags                   | v0.1.0-beta.15   |        |
        | flarum-lang-english           | v0.1.0-beta.15   |        |
        | flarum-mentions               | v0.1.0-beta.15   |        |
        | fof-upload                    | 0.11.3           |        |
        | fof-nightmode                 | 0.7.1            |        |
        | lcinhk-acgembed               | v0.5.2           |        |
        | flarum-akismet                | v0.1.0-beta.15   |        |
        | ffans-lang-simplified-chinese | v0.1.0-beta.15.1 |        |
        | askvortsov-pwa                | v2.0.4           |        |
        +-------------------------------+------------------+--------+
        
        Debug mode: off
        [http@archlinux clinux]$

          Install minishlink/web-push lower than version 6 first, then try again. I had same problem. Got it fixed that way.

          lakshya the icons upload able in this extension are only used inside the actual PWA, iirc. Could you please elaborate as to what part isn't working, and share screenshots if possible?

            askvortsov I meant to say...that the icon/badge used to send push notifications to browsers is set to default browser icon....not what i uploaded in PWA......for example its default chrome icon in chrome browser.

              I've got the extension to work on my test forum, it works really well! Great job, looking forward to more updates and features from this extension, as the simple setup makes it... simply awesome

              4 days later

              Any way we can have it force refresh each time the app is opened? Sometimes I open it and it's stale and I don't see new posts unless I pull down to refresh