I’m using expo-server-sdk-node and trying to send ExpoPushNotifications to mobile.
Due to interne politics, our backend can not reach an external server unless through our proxy.
The Expo constructor accepts an option named httpAgent that you can pass in like new Expo({ httpAgent: yourProxyAgent }). I haven’t tested this with a proxy but I believe you can pass in a standard Node.js https.Agent object as the httpAgent option.
new Expo({ httpAgent: 'https://myproxy.intranet:1234' })does not work…
Getting as error : TypeError [ERR_INVALID_ARG_TYPE]: The "options.agent" property must be one of type Agent-like Object, undefined, or false. Received type string.
Do you know if it’s possible or not to pass an httpAgent as argument ? It seems to only accept undefined or false.
you should read the github url that @ide linked to. you provided a string as your httpAgent, but as @ide said it needs to conform to the node https.Agent interface