Is there any way that I can make it work?
More or less. This is what I do:
// browser_action (can not be set in manifest due to fennec incompatibility)
!fennec && browserAction.setIcon({ path: manifest.icons[1], });
!fennec && browserAction.setPopup({ popup: '/view.html#panel', });
fennec && browserAction.onClicked.addListener(async () =>
tabs.create({ url: `/view.html?forTab=${
(await tabs.query({ windowId, active: true, }))[0].id
}#panel`, })
);
Is it possible to upload 2 version of the addon. One for mobile and more for desktop version of Firefox.
I think it is, but with the above approach, you don’t need to.
Also what should I do if my extension needs to ask for additional permissions later on. It does not see to work on Android.
It should. Please elaborate.