How to avoid 404 page when merchant editing the marketing activity but the App had been uninstalled

Shopify Partner
3 0 0

Hi guys,


I created an extension for my APP, the shop owner is able to create marketing activity based on my APP.


If the activity was created, then the shop owner uninstalled my app, the activity still in their marketing campaign.


When the shop owner clicks this activity, it would show the page like this:


404 not found404 not found

I expected that would show the page like this, it contained the banner with the notification message telling the shop owner to install the app before using the activity. 


Show the notificationShow the notificationHow can I do?