I have a reactjs app that will open mattermost window externally by a user-click on a button, in which it has a mattermost plugin loaded. The plugin will need initial data from the reactjs app. For now, I can not find a way to reference the data from the reactjs app, so have to use url params to store data when open window. When user open the plugin, it will get data from those url-params. The problem is when user select another channel, then the URL is changed and the params are gone. So, What I am looking for are any of the below:
is there a way to enable the plugin to read json data file, which is stored within mattermost server? This means if we want, we can change the data anytime and restart the server only, no build anything.
OR is there a way to post some custom data to mattermost server and the plugin can retreive it later?
I would like to know if anyone have any insight / suggestion on either one or both of the items listed above, please help me out.