On Install App it is not redirecting to the webpage of the app instead showing loader..

Shopify Partner
4 0 1

We are developing app for Shopify.

 

On App installation when we click Install App button in shopify admin area, Shopify shows the loader inside Shopify instead of redirecting to our app specific webpage and giving following error:

"Uncaught DOMException: Failed to set the 'href' property on 'Location': The current window does not have permission to navigate the target frame"

 

Found that issue is due to iframe. 

 

Does anybody know how we can resolve this issue, is it bug on Shopify end? OR is there something that we can do to resolve it.

0 Likes

Hello 

 

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Custom Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Digital Marketing | Site Speed Optimization | Web Development
0 Likes
Highlighted
Community Manager
Community Manager
618 45 81

Hi @SocialPanda,

 

Can you give some more information about your issue? Which stage of installation is the issue? What is the "App URL" as set in your partner dashboard?

 

Keep in mind that if your app is embedded, you will need to escape the iframe during the initial OAuth redirect to Shopify. You can use a top level redirect for this.

0 Likes
Shopify Partner
4 0 1

Using Custom app developed by our team. 

0 Likes
Shopify Partner
4 0 1

Hey Busfox,

 

Thanks for your reply.

 

When store owner who is using our app goes to his shopify store apps section and in installed apps when they click on our app it keeps loading for about 5-10 minutes not sure why is that.

 

Can you suggest what could be wrong and how can we resolve it.

0 Likes
Community Manager
Community Manager
618 45 81

Hi again @SocialPanda,

 

When you click on the app in the shop admin, we redirect to your app's "App URL" as it is set in your partner dashboard. If we detect the app is Embedded, we will try to embed in in the admin. Otherwise, it will be redirect at the top level. If there's an issue with the app taking 5-10 minutes to load, it sounds like there's an error in your app url that is being loaded. I've seen redirect loops cause a similar issue in the past, could that be the case here?

 

Also, keep in mind that if your app is embedded, you will need to ensure you aren't setting the X-Frame-Options header value to DENY.

 

If you have more details about what exactly happens when you click it, that would be helpful. For example, what do you see in your server logs? Does the app load eventually?

 

Cheers,

0 Likes