I’m currently working towards earning the coveted “Built by Shopify” badge, and I’ve encountered some confusion regarding the implementation of the app navigation. It has come to my attention that there exists a new CDN-only version of the Shopify App Bridge, which boasts the capability to incorporate the feature. As of now, I am already utilizing the most up-to-date NPM versions of both the app bridge and app bridge react.
My main query is whether I can create the desired navigation menu (as detailed here: link to documentation) using the current NPM versions, or if it’s imperative to switch to the new CDN version. Furthermore, should I opt for the new CDN version, is it possible to seamlessly integrate it with my existing setup?
Any insights or guidance on this matter would be greatly appreciated. Thank you in advance for your assistance!
i’ve been using "https://unpkg.com/@shopify/app-bridge@3" as my main app-bridge script. i’ve tried implementing ui-nav-menu but cannot get it working. i’ve placed it in my head but for some reason it gets placed into my app body and actually renders in my app.
i tried setting latest version of app-bridge CDN specifically:
Yo chris - 5 minutes later and i’ve got it lol. They changed the way app-bridge loads in completely.
place this script as the first thing in your HTML head:
if you still need to use createApp etc – i’ve ended up pulling that from my NPM app bridge and not from that script above but guessing there is a way to pull that in properly.
but if you use this setup, it renders the navigation properly in admin.