ZOOM MACSDK ELECTRON, after packaging authService returns 6(AUTHRET_NONE?).


#1

Hi, again,

I could auth, login, and start meeting with electron command, but when I package the app, I cannot go through auth with the key I could auth without package.

After some investigation, 

In SDKAuth(auth_bridge.js), authService returns 6 , I think this is the wrong part. When I run the app with electron command, it returns 0, which is probably successful value.

Btw, I used electron-log library to see the result.

I’m wondering this is something with security issue or something that I cannot connect to the API.

If somebody have encounter this problem, please share how to solve.

 


#2

Hi Shin,

I will send you our latest package for testing. 

Please follow the below steps when you trying to package:

  1. Install electron-packager: cd /Your App Folder , run command  npm install --save-dev electron-packager
  2. make sure u have a package.json file, it should be look like this:

{

“name”: “demo”,

“version”: “1.0.0”,

“description”: “test”,

“main”: “main.js”,

“scripts”: {

“test”: “echo “Error: no test specified” && exit 1”,

“packager”: “electron-packager ./ zoomsdkapp --platform=darwin --arch=x64 --out ./OutApp --electron-version=1.7.9 --overwrite --icon=./app.icns”

},

“author”: “”,

“license”: “ISC”,

“gypfile”: true,

“devDependencies”: {

“bindings”: “~1.2.1”,

“electron-packager”: “^12.0.0”,

“electron-rebuild”: “^1.5.10”

},

“dependencies”: {}

}

  1. run command:  npm run-script packager
  2. go to OutApp/zoomsdkapp_darwin-x64/zoomsdkapp, right click on show contents
  3. Inside contents/Resources/app/node_modules/ZoomSDK copy the entire ZoomSDK folder to demo/node_modules
  4. Run app.

Best


#3

Hi Wei, 

Thank you for your response, I will try your package.json.