Embed electron app inside another electron app


#1

I have two electron applications and I wanted to embed one electron app inside another. Is this possible? If so, can you point me to a useful resource that can help me do this?


#2

You can do anything with Electron that you can do with a web app and a browser.


#3

Can you point me to a resource on how to do this?


#4

Thanks for clarifying.


#5

Have your first app open a web page that contains the second app.

For any more detailed recommendations, you will have to define what you mean by “embed inside”. Your problem statement is vague.


#6

By embed, I mean instead of redirecting to a my second app to do something, I can simply run the second app inside the first one. Similar to having google maps inside my own app instead of redirecting to google maps, have the user enter in the information there and then returning back to my app. Similar to web frame functionality. I want do this something similar with my electron apps. Hope to hear from you soon on how I can do this.


#7

You could use that, if you want to. I think the recommended way to do it in Electron is to use the <webview> tag.


#8

Okay, thanks for the clarification. :slight_smile:


#9

how can i embed an electron app inside another electron app if the app to be embedded is also in exe format? Don’t think web views or web frames can work for exe file embedding right?


#10

You would embed the second Electron app by getting its source code and running it as a web app inside a <webview> tag.

If you want any more help, you’ll have to be less vague.


#11

Webview allows us to embed url of one app into another. But there does not see a way to embed two exe files onto each other, for ex: one hello world exe files inside another


#12

Which specific application are you looking to embed in something else?


#13

it could be a simple hello world app inside another hello world app


#14

Okay. Have App 2 print Hello World to stdout, then have App 1 start it with Node’s process module and print the results.