App Bridge 2.0 now requires a host parameter. So a bunch of my old codes now puke and die without it.
Looking at the Shopify App code, the login protection comes with a host method, and returns a host parameter if provided.
How can I get access to this host parameter as a nice consistent value throughout my App where I need it? In my embedded app layout, I have access to my Shopify App API key, the shop domain, but not the new host parameter.
Nope, that is not useful. That would be fine for front-end work, and while you are correct that the Shopify React Polaris machine comes to life on the front-end, I need the host parameter in the back end, and my question was more geared towards that. I have the answer now, and yes, it does involve saving the parameter and instantiating a session to hold it.
I will comment further, that the more Shopify digs these holes for itself, the quicker all the crowd will be to disperse into the netherworlds, not to be seen or heard from again. You may call it progress, but we call it PITA every time someone at Shopify invents a new way to tick everyone off with fluff.
In other words, if Shopify is going to impose fluff on us, do us a solid and explain why you’re doing, what the fluff is good for, how you intend to change fluff over time, and how long you think fluff will even last. We got none of that with fluffy host.