Replies: 2 comments 2 replies
-
Here is the "high-level leave out the messy details" version, but hopefully it answers your question. Plugins can conceptually be thought of consisting of four parts:
A Capacitor app is a web app embedded inside a native app. The native app launches a webview and serves the web app into the webview. It also sets up a bridge so messages can be passed between the web app and the native app. Then when you do an The If you call
So, basically:
Does that answer your question? |
Beta Was this translation helpful? Give feedback.
-
Your answer is great, it helps me a lot to understand how to communicate between native and web. Yes, I would like to understand the case of: When I compile my angular code for the ios or android platform, in case I have implemented a code scanning SDK for example: For the case of capacitor (mobility) I have one solution and for the case of web another, then, in the build's, (which in the case of capacitor is the same as web), how do you apply one solution and another? Is there a configuration file or something that can be seen? I don't understand what you mean by this: |
Beta Was this translation helpful? Give feedback.
-
Good Morning,
I want to open a debate to collect feedback on how the webpack behaves. I have a basic project in Capacitor, in it I have installed two plugins:
Following the tutorial I see that Capacitor does not have an instruction to generate build's and you have to perform a normal build (For web) that this generates the compilation in the dist/ folder.
I'm interested in better understanding, when you build for the various platforms (Android, iOS and Web), how the code of that plugin is built for that specific platform.
Does Capacitor modify Webpack configuration?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions