Hi,
I'm trying to figure out a way to differentiate between the case where the extension has been installed but not enabled and the case where extension has not been installed from a webpage. I want to show a different prompt to the user based on this differentiation. I looked up for solutions online and tried the following:
1. External Messaging from the website to the extensions but it fails in both the cases and I don't get any information on whether the user doesn't have the extension or if the user has the extension disabled.
2. Trying to access web_accessible_resources from the website. Tried fetch(chrome-extension://extension-id/path/to/resource) but it fails with GET chrome-extension://invalid/ net::ERR_FAILED in both the cases.
Is there a way to be able to distinguish the state of extension being disabled and extension not installed in the first place from an external website.
Thanks