You are reading a single comment by @Rarder44 and its replies. Click here to read the full conversation.
  • it would be convenient to be able to change the app that is called by the Android/IOS app

    smessages has this in a boot file:

      global.load = (_load => file => {
          if (file==="messages.app.js") file = "smessages.app.js";
          _load(file);
      })(load);
    

    It feels rather hacky, but it works, and is cleaned up automatically when you uninstall the app.

  • It feels rather hacky, but it works

    yes it works, but I don't really like the approach... I think that keeping these methodologies leads to some apps struggling to communicate with others in the end.

    At this point I would override the "require" function so as not to directly load the "message" library (and its pushMessage )

About

Avatar for Rarder44 @Rarder44 started