Distinguish UseCases App installation vs. App login (QueryParameters have changed)

Highlighted
Shopify Partner
12 0 1

Hi guys,

I have a problem within my application to distinguish between two types of calls towards my application:

  • Install: The user wants to install my app
  • Login: The user wants to login into my app from the "apps section" in his backend

Both of these calls seem to go to the same application URL (example: http://myapplication.myserver.com/?shop=..&hmac=..&..) and were easily distinguishable in the past, due to Shopify providing different query parameters for those cases:

 

Unfortunately the query parameters have yet changed again and all my apps have stopped working. I'd like to ask how to distinguish within my app which UseCase applies (Shall the app generate an installation request? Shall the app show the frontend to the User?), if not by query parameters?

 

Regards
Markus

0 Likes
Highlighted
Shopify Partner
12 0 1

In the meantime I have found the following related topics:

Nevertheless using the same callbacks for different usecases is a barbaric practise to me. Any thoughts or suggestions?

0 Likes