Trigger Addon Updates

Hi,

I see that the addons are checked for update every day (const delay = 24 * 60 * 60 * 1000;). Is there any way to manually trigger the update process? I have been looking at extensions and API handlers. It would be great if we could trigger the update process through this extension API handlers.

I tried calling the updateAddons() function written in the Addon-manager.js from the extension, however, it is failing due to addonsLoaded and plugins checks.

Which should be the ideal sequence of function calls so that all the references are found?

Abhijit

Question… why are you trying to do this?

The user can go to Settings -> Add-ons in the UI. Doing so automatically fetches the latest add-on list and the user will be notified if there are any updates available, which they can then manually install.