Thank you for the suggestion ‘omark’. Unfortunately it does not help me because I am not using Gnome Software. I am using a custom shell script with Zenity as the graphical user interface to install flatpak apps.
I guess the Firefox addon would be usable to more people if it was possible to configure what app/software manager is supposed to be targeted in order to install the flatpak app.