Update check Published : 23 Jun 2019
  • Red dot will be appeared when updates found and if clicks, the plugin will be updated automatically or archives will be opened by default browser.
    public Plugin() throws Exception {
        super("whatever you want");
        setPluginVersion("1.0.0"); // this is essential for update check

    the Actlist will requests to your server with version parameter via GET method when Actlist is instanced up at first time.

    You can response with your web application server or if you don’t have any web application server, but it’s ok. feel free to use this update-check.js but don’t forget to upload the update-check.js file to your own online place like a GitHub. and you can specify the url of update-check.js on setPluginUpdateCheckURI method. (be aware that this request url must be ends with .js)

    • Using dynamic web application server
      • please response these parameters as a single Map object to the Actlist’s update check request.
        • available : true or false. this will notices to user that your plugin has available updates or not.
        • jar : latest jar file of your plugin for automatic updates.
        • requiredActlist : minimum compatible version of the Actlist for automatic updates.
        • url : the plugin’s archives url. this url will be browsed when automatic update fails.
        • killSwitch : on or off. this will makes the plugin to unavailable.
        • endOfService : true or false. this will notices to user that your plugin has reached end-of-service or not.
    • Using static JavaScript file
      • if you don’t have any web application server but you have GitHub account, this is your way.
      • please refer to this sample repository.
        • you can see Plugin.java is pointing update check url to it’s own repository’s https://github.com/.../raw/master/update-check.js

    There are two ways to browse the archives when automatic update fails.

    • the first one is browse by your url response value through setPluginUpdateCheckURI(URI) method.
    • the second one is browse by your code with 2nd parameter of setPluginUpdateCheckURI(URI, URI) method.

    Even if you set the archives url manually through setPluginArchivesURI method or 2nd parameter of setPluginUpdateCheckURI(URI, URI), server’s url response value will be strongly respected.

    Also you can override pluginUpdateFound method for notice or something

    public void pluginUpdateFound() throws Exception {
        label.setText("Update available !");

Improve this page