gnikyt / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
1.24k stars 374 forks source link

Apps not installling after uninstalled #788

Closed rrakhmit closed 2 years ago

rrakhmit commented 3 years ago

Current Behavior

Screenshot 2021-05-16 005007

Fist install from partner account working perfectly. I am using sqlite also checked user table inserted correct data.

Now after remove the apps, When i tried to install its authenticated successfully and welcome page coming, But after redirect to shopify site above page is coming also the apps not listed on apps list.

Also checked the db user table not updated with deleted_at.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Uninstall apps
  2. Again try to install apps
  3. After authenticate it will show welcome page
  4. After redirect to shopify admin panel from welcome page the above scrnshot comes up and apps not showing on apps list

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

rrakhmit commented 3 years ago

When i remove that user row from user table then it will works again.

ghost commented 3 years ago

use hook

rrakhmit commented 3 years ago

@Enmaboya Thanks for you reply.

Hooks already there, i used same code structure for two apps only endpoints and apis informations are different, first application work perfectly but somehow 2nd apps are not

sergeyantonuk commented 3 years ago

Hi @rrakhmit this issue was discussed earlier, you need to use Uninstalled Job (see wiki https://github.com/osiset/laravel-shopify/wiki/Installation#uninstalled-job-recommended) for automatic user deletion after the app has been uninstalled. Also, webhooks will not work when ngrok has been changed or you have issues with laravel queue driver.

lucasmichot commented 3 years ago

@rrakhmit - could your issue be solved ? If so can you close this issue ?

rrakhmit commented 3 years ago

i will check and let you know. Thanks for you enquiry.

Rajib Kumar Rakhmit PHP Web Developer @., @. +88 01736 212121

On Wed, Jun 23, 2021 at 11:10 PM Lucas Michot @.***> wrote:

@rrakhmit https://github.com/rrakhmit - could your issue be solved ? If so can you close this issue ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/osiset/laravel-shopify/issues/788#issuecomment-867013612, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMSKYD3HSRQQJCHMRF7GCTTUIIOXANCNFSM446E6TUQ .

pouya-loyall commented 3 years ago

When i remove that user row from user table then it will works again.

Could you please explain it more, which user you're pointing to, and how you remove it?

PhongNguyen512 commented 3 years ago

Hi guys,

I'm having almost the same issue. In my case, when I try to reinstall the app after deleting it, my app doesn't redirect me to the OAuth permission page, but it redirects to the app. The reinstalled app won't have permission to do anything, for example: access to Orders.

To be clear, this issue only happens when I try to reinstall the app within 48hr since I deleted the app. The Uninstalled Job only works when Shopify sends erase data webhook (after 48hrs since deleting the app). I contacted Shopify support, and they said when a user reinstalls the app within 48hrs, the app should redirect to the OAuth grant screen. https://shopify.dev/apps/auth/oauth

PhongNguyen512 commented 3 years ago

When i remove that user row from user table then it will works again.

Could you please explain it more, which user you're pointing to, and how you remove it?

The solution is you search the store name in users table and delete it. For example: your store is awesome-store.myshopify.com. Then you have to search that store name in users table. After you deleted it, the app will detect your store as freshly store.