My main idea and objective with it are to create and publish apps to the app-store, but more complex applications that require, Master Data schemas and initial setups, really need that to be automatic, ideally once at install, or they will just not be as “plug-n-play” as the way they were meant to be.
The conclusion for it was that I tried to recreate the following onAppInstalled event, but with no success.
I’m wondering if I need any specific permission to receive these events, or even if they’re just sent by the VTEX App Store, bc I tried to install via the CLI, with leaves me thinking this is only dispatched by the apps-store, but these are only theories…
Yeap, the majority of your guesses are right, I spent time testing this a while ago. The settings change event works as expected, using the admin UI to change the settings it reflects in pretty much real-time. That’s for sure.
But with the onInstall that leaves the doubt, I tried some approaches to installing an app, but, none of the ways, using the CLI, dispatched the event, I tried just releasing and installing in the workspace, at master, and production just to name a few. But releasing to the store is one of the remaining tests i was not able to perform yet.
Just pinging here, but in this meanwhile I re-wrote the example for a simpler approach, to be easy for to everyone install and test, and the repo stays the same. I’m willing we find a way to make them available!
Ps. The URL used in the client is a simple mock API from Postman where we can see the call that was made, feel free to change it during your tests.