I’m not 100% sure how apps that have it set to /install do on their end, but I imagine they have a check in place to see if there is already an existing session to know when to bypass the installation flow.
I’m glad you asked those questions because I realized now I forgot to let you know that I was investigating that on our end.
Client credentials grant only works for stores that you own. So if the app belongs to a Partner organization, it will only work on the Partner development stores. This solution is especially great for Merchant-owned apps.
This is the part I’m still investigating.
Once the investigation is complete I plan to update our documentation so there’s sufficient information for non-embedded apps.
I was granted full access to the store yet I wasn’t able to install my app. Is there a difference between someone who owns a store and someone who is invited as a collaborator?
Is there a redirect url I can configure or watch to uninstall the app when the merchant uninstalls from the admin page?
Yes there is. If your app belongs to a Partner organization, then client credentials grant will only work for the Partner organization’s dev shops. In case you’re interested, you can confirm if you can develop a merchant-owned app by accessing the Dev Dashboard from the store switcher icon on the top-right corner of the shop’s admin.
Only my dev store has the button to access the Dev Dashboard but my merchant store does not
This means your collaborator account does not have the necessary user permission to develop apps on the merchant store.
There is a ready-made role that merchants can use to give these permissions:
Thanks @Paige-Shopify, I seem to have gotten the webhook working via http, but the store I am collaborating on returns the following. Do I need to be a staff member and how is that different from a collaborator?
The reason you cannot access Users > Roles is because your collaborator account doesn’t have the Administrator role. This role allows you to view, create, edit and delete users and roles on a shop. It also allows you to view, create, edit and delete all resources on a shop. This role is typically assigned to very few staff, and rarely assigned to collaborators.
The main difference between staff and collaborator accounts is which business you belong to and how you login to the shop. Business A owns Shop A, and wants assistance from Business B with their shop. Business A gives collaborator access to Business B while maintaining staff access themselves. Business A can login to their own shop directly, while Business B must use the Shopify mobile app or login from the Partner Dashboard to access Business A’s shop.
There is more detailed information on collaborator accounts here: https://help.shopify.com/en/manual/your-account/users/security/collaborator-accounts