I've been building an app following the documentation for Shopify, and it all seems to be working fine, but there's one bug I've been trying to fix now for a while... I've seen this question on here before but couldn't find an answer that worked for me.
I'm trying to get it so the app doesn't redirect outside of Shopify to my (currently) ngrok URL upon initial install. (Though after install and manually redirecting back to the admin panel, it opens in the frame just fine -- it's the install that's the issue). I'm using the React App Bridge and passing in the configs and forceRedirect boolean to the provider (I also tried doing this with Polaris AppProvider), but no dice (not even sure if this would affect this -- just kept seeing on here that App Bridge might be able to solve this issue).
I also tried just doing a `res.redirect` in my node server after the authentication to this kind of thing that I've seen on here:
That should actually work, but I think in this case we would have to whitelist every single customers shop who happened to download the app - doesn't seem ideal! 🙂