Questions tagged [ipcrenderer]
70 questions
1
vote
3 answers
Electron JS event is firing multiple times
In electronJS, I have created a custom application menu in which I'm sending the event from main process to renderer process, but now what happening is where I'm listening this event is running multiple times. So, if anyone could help me to find and…

Abhishek Matta
- 218
- 3
- 15
1
vote
0 answers
Electron get classname of object selected object using ipcRenderer in browser window
I have a browser window object that uses 'NodeIntegration=true' to interact between the renderer and main using the ipcRendere, it works fine for pages such as github.com. Unfortunately for StackOverflow, it doesn't load the external javascript…

Sudheej
- 1,873
- 6
- 30
- 57
1
vote
1 answer
using arg beyond ipcRenderer electron?
So I have this code and the arg is getting sent through from Main.
ipcRenderer.send('asynchronous-message', 'async ping')
ipcRenderer.on('asynchronous-reply', (event, arg) => {
console.log(arg);
});
I would like to be able to use…

sjjk001
- 175
- 2
- 12
1
vote
1 answer
Electronjs ipcMain doesn't send message to another window with ipcRenderer
I'm trying to send an text from one window to another, but I can't do it
This is where my main listen
ipcMain.on('fromRenderer1', (e,arg) => {
createWindow2()
console.log(arg)
window2.webContents.on("toRenderer2",()=>{
…

Fede
- 11
- 3
1
vote
1 answer
Spooky Action at a Distance: Electron & React useEffect - Unable to unsubscribe from ipcRenderer events
I have encountered strange behavior when using Electron's ipcRenderer with React's useEffect.
Within my electron app, I have the following code:
import React, { useEffect } from 'react'
const electron = window.require('electron');
const ipcRenderer…
user12874947
1
vote
1 answer
Electron-Angular: Running Karma errors because of undefined ipcRenderer inside angular component
I have an Electron application that uses Angular (8) as a front end framework.
I am trying to implement unit testing but keep getting the following error when i start the test:
Chrome 77.0.3865 (Windows 10.0.0) FooterComponent should create FAILED
…

Landvis
- 280
- 3
- 15
1
vote
1 answer
How does IPCRenderer.send() serialize data to JSON?
I am trying to send information about an error event using ipcRenderer.send("error", errorObject) but my Error object gets serialized to '{}' in the listener. Now, I know that ipcRenderer serializes objects to JSON internally (More information here:…

ybs
- 13
- 5
1
vote
1 answer
ipcMain listener not registering correctly
Am having some troubles with ipc messages between the main and renderer processes in an electron app.
The ipcRenderer is sending the message correctly (I can see it from devtron) but the ipcMain is not listening to anything
code in main.js
const…

FidelVe
- 45
- 4
1
vote
0 answers
Issue with Electron ipcRenderer.send
I have an Electron app. It sends via a ipcRenderer.send in renderer.js a download event to an ipcMain.on listener in index.js:
renderer.js:
for (var i=0; i < data3.projects.length; i++) {
var project = data3.projects[i];
for (var j=0; j <…

marcvander
- 479
- 4
- 17
1
vote
2 answers
How is the ipcRenderer argument JSON object losing data when passed from an Angular 7 service?
I am having a strange issue with an Angular 7.1.1 and Electron 4.1.4 project.
Data Flow:
Angular Component "Report Builder" collects report configuration options from a FormGroup and FormControl validated form and sends data to…

flaglerkid
- 31
- 3
0
votes
1 answer
How to send parameters to API url in electron?
I have created an Electron app and I am new at this. I am trying to get inputs from a user using HTML. Then, I want to send these inputs to main.js after clicking the button. In main.js I am trying to send a port using endpoint. This is HTML…

RYldz
- 1
- 2
0
votes
0 answers
Passing a stream thorugh IPC
Working on video calling project, My Call is displayed in the mainWindow and when I Click On a button , I need the Call to be on another Window. but am not able to send stream through the IPC , so the only possible way I can see is to start a…
0
votes
0 answers
ipcRenderer not receiving messages reliably on startup
I have a problem with the ipcRenderer not receiving a message from ipcMain when my app is initializing.
I’m running a 3rd party component from which I want to receive some settings. Once the variables are stored in a state variable within my home…

Traxan
- 45
- 7
0
votes
1 answer
Electron with React - ipcRenderer receives a reply from a previous message to ipcMain?
So I'm pretty new to Electron, and my goal is to have a completely offline application that effectively queries and displays results from a loaded SQLite file (hence the questionable SQL practices here).
I am able to query my database and get…

firefly
- 3
- 2
0
votes
0 answers
path.join error in Electron's ipcRenderer
I am creating a Windows app using Electron, React, and Vite.
Currently I'm just learning it.
In my App.jsx file, when I am importing ipcRenderer as import { ipcRenderer } from "electron";; I am getting an error as shown in the image below.
How…

Deepanshu Yadav
- 93
- 1
- 2
- 8