-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Description
Replace the first Parameter of the Constructor of PluginCall with an interface
Platforms
- iOS
- Android
- Web
Request or proposed solution
I am building a solution, that uses an alternative JS runtime to run Capacitor Plugins not only from within the webview. This allows to execute JS in the background and still use existing plugins for native functionality.
The PoC is working, but I was facing issues as I need to extend MessageHandler class in order to properly create PluginCalls. As MessageHandler expects a webView instance, I have no way to make it work cleanly.
It would be easy to replace MessageHandler with an Interface, that specifies postMessage and sendReponseMessage signatures for PluginCall to make everything more flexible.
Alternatives
No response
Additional Information
No response