I’m building a custom plugin and I need to specify a dynamic url based on whether the app is live or in vtest.
I am trying to get this information in my initialize function. I know I could call window.location.href; and then parse the url that way but I’m hoping for an easier option.
If this was the update function, I could create a field where the plugin gets passed the app version but I don’t have access to that in the initialize function.
Is there a better way than window.location.href?
You would think that bubble would give you access to a bunch of non plugin specific, static states like app version, website home url, etc?