I hope you are doing fine. I recently coded an app using Ruby on Rails (Rails 5.2.2) and I have an issue in which when installing the app it redirects to a non-embedded version of the app. The Shopify App team says that this occurs when an initial OAuth request redirect fails to escape the iframe, and they said to refer to the documentation in this link: https://shopify.dev/tools/app-bridge/getting-started. But, still could not manage it.
Anyone who has already gone through the same issue in Rails, I would highly appreciate your help.