We created the user-photos app published in the Shopify app store.
But it suddenly stopped working on all our clients stores, we have not made any changes.
The issue we see relates to the URL forwarding from Shopify. For exmaple this URL
http://www.jurawatches.co.uk/apps/userphotos/photo/index/jurawatches.myshopify.com/82247292
Should go to this URL: http://userphotos.78e.co.uk/photo/index/jurawatches.myshopify.com/82247292
But we are getting this error: We're experiencing a technical problem and we are doing everything we can to resolve it as soon as possible.
Related
THE SITUATION:
I am testing my Shopify app.
Until few days ago it was working fine.
The intended behavior was it to be opened embedded in Shopify dashboard.
Recently when I click on the app it opens in a new tab at the following url:
https://[STORE-ID].myshopify.com/admin/apps/[APP-NAME]?force_legacy_domain=1
Note the force_legacy_domain param added to the url.
SHOPIFY DOMAIN CHANGE
It seems there have been some changes in the Shopify admin url.
With the new change it should be opened at the following url:
https://admin.shopify.com/store/[STORE-NAME]/apps/[APP-NAME]
QUESTION:
How can I avoid opening the app in a new tab?
I think you answer this one by simply ensuring you are keeping track of the right parameters, and Shopify will not do the new tab. So ensure you have your host and shop parameters throughout the lifecycle of all calls to your App. If you are not setting the host, or handling the admin.shopify.com domain correctly, Shopify is sending you to the legacy handler, and that opens your App in a new tab it seems, reminding you to ensure you are handling all the parameters correctly for both the new and hold Shopify App domains.
Looks like this may be a bug on Shopify's end.
There is a github issue reported here:
https://github.com/Shopify/shopify-app-bridge/issues/160#issuecomment-1425990569
And there is a thread I found on the Shopify developer forums: https://community.shopify.com/c/technical-q-a/force-legacy-domain-1-cascading-redirects-using-shopify-app/td-p/1938587
I am working on an app and used json-server for the backend api. I published the app using github pages and everything seemed to be working fine on my laptop. But when I try to open the app on another device, it does not work. I realized this was because I am using localhost:3001 as the resource for my api, and this only exists on my laptop. I am now trying to change the resource from localhost:3001 to a custom url 'https://my-json-server.typicode.com/vbrambila2/1RM/movements'. The issue I'm running into now is that the POST, PATCH, and DELETE methods in my actions aren't updating the api anymore. Anyone know what I might be doing wrong?
I am facing some weird issue in Shopify app development. I have created app which is working fine on Development store. it is able to add some data on development store.
But for testing purpose I have offered this app to the merchants to test this app on their live store having activated Shopify Paid plan. But app can not add any data. Post/Put requests are auto converted to Get requests.
I have created couple of apps those are published on App store and in past they were being used by Active Paid Plan merchants before app has been published without any issue.
Is there something changed on Shopify side. or I am missing something this time ?
Any help will be appreciated.
every put/post request's endpoint should be on .myshopify version of domain.
I was passing primary domain. and it was working fine in dev stores as dev store. because in dev stores .myshopify version domain and primary domains are same.
I did not get this issue for so long. it was a silly mistake but stops app functionality.
Posting answer just because other people would not make such a blunder.
We develop our first app and use Shopify gem. It works fine and all functionality (including installation flow) is working well.
We've sent the app for a review and received an answer with following comment from their QA:
After installing the app from the Shopify App store, the app is redirecting to the website where the app is hosted. When accessing the app from a shop's app dashboard, the app is redirecting to the embedded version. This occurs when an initial OAuth request redirect fails to escape the iframe. Please refer to our embedded app OAuth documentation (https://help.shopify.com/en/api/embedded-apps/embedded-app-sdk/oauth) for further information.
Has anybody faced with this problem?
Shopify QA doesn't answer our e-mails and we couldn't find any useful requirements or information on shopify forums.
I've deployed a React Redux site on hostgator.com. While it works to visit the page and navigate as usual. (React routing works), it shows 404 not found whenever I reload the page.
I talked to their support which, before leaving 20 sec into the conversation, came with the suggestion that it may have to do with the site trying to run on https, while no SSL is implemented.
I'm curious, why does it work locally and not on the world wide web? Any thoughts?
Thanks.
You need to look into a Server Side Rendering solution. A good framework for doing so with React is Next.js.
Basically as long as you don't refresh the page React-Router has control over the address bar as well as history via the History API. But when you hit refresh you send a request to the server for whatever is in the address bar. But the server is not handling your routing, React-Router is on the client side. You also won't be able to type a child route directly into the address bar without server side rendering.