Unable to access App URL after install app

Im dev an app via ngrok. after i install app, im not directed to my app url sign on partner app config. Instead of it, im directed to app install page


my logic is when window.top == window.self, i will call oauth.authorize to access redirection url sign on partner config (auth/callback).

Is there any missunderstanding of mine so im get directed into install app page instead of my app url

Hi - are you still seeing this issue? If you’re always being redirected to the install page, it usually means your app is not detecting a valid session or access token for the shop, so it keeps triggering the OAuth flow.

For embedded apps, you must handle iframe restrictions. If your app is loaded in an iframe (Shopify Admin), you cannot redirect the parent window directly. You need to “escape” the iframe using App Bridge before redirecting to the OAuth flow.

There’s more info on this here: Exchange a session token for an access token