I have an extension that is both available for Firefox desktop and Firefox Android. I want to open a specific website to register users when the extension is installed.
However, this does not work in Firefox Android. When the add dialog shows and you click “add” the register website opens. However, when the additional dialog (only on Android) “allowing the extension in the privacy browser” is enabled then the register website is automatically closed. If you don’t allow the privacy browser, then the register website is open.
The code I have used for the onInstall is:
browser.runtime.onInstalled.addListener(function handleInstalled(details) {
if(details.reason == "install"){
browser.tabs.create({
url: registerUrl,
});
}
else if(details.reason == "update"){
browser.tabs.create({
url: activateUrl,
});
}
});