🧩 Plasmo Developers�PD
🧩 Plasmo Developers10mo ago
6 replies
Renasue

Best way to send a message from popup to content and get a response in Plasmo?

Hi everyone, I'm working on a Plasmo extension and trying to send a message from the popup to the content script and receive a response back in the popup.

I read that one approach is to use storage as an intermediary—where the content script updates the storage and the popup listens for changes. However, since storage has limitations, I'd like to explore other options.

Would chrome.runtime.sendMessage or chrome.tabs.sendMessage be a better approach for direct communication? Or is there another recommended method in Plasmo for handling this?

Thanks in advance!
Was this page helpful?