question

Ted Dangerfield avatar image
Ted Dangerfield asked Embbnux Ji answered

Embeddable app login to sandbox

Hello,

I have cloned the Ring Central Embeddable Electron App repo, as a starting point. The repo configures a <webview> to render the RC login screen, as follows:

<webview
  preload="./preload.js"
  partition="persist:rcstorage"
  allowpopups
  id="rc-widget-adapter-frame"
  src="https://ringcentral.github.io/ringcentral-embeddable/app.html">
</webview>

How can the source be configured to log into the sandbox environment instead of production. i.e. https://login.devtest.ringcentral.com/

embeddable
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anirban avatar image
Anirban answered Ted Dangerfield commented

By default it is in production mode. Workaround is you need to run 'toggleEnv()' in Chrome Developer Tools console of this inspect element (right clicking) extension to open environment setting panel. Toggle the Enable button and save. It will start to use sandbox environment.

ref: https://community.ringcentral.com/questions/1072/chrome-softphone-to-sandbox.html

5 comments
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hi Anirban, upon opening Chrome Dev Tools, from my RC Embeddable Electron app, I executed toggleEnv(), but this function is undefined.

I have the same experience when executing the command in a standard web app, with the Ring Central Embeddable widget.

Is this function supported by the RC embeddable widget?

0 Likes 0 ·
Anirban avatar image Anirban Ted Dangerfield ·

Yes it will show undefined, but will work.. I have done successfully below:

1617817581742.png

You need to save the settings in Sandbox mode

0 Likes 0 ·
1617817581742.png (47.3 KiB)

Anirban, I am not presented with the Environments display. See screen capture below. I am using the RC embeddable widget, within a web app. Are you using this or another Ring Central product? Are there other requirements to receive the Environments display?screen-shot-2021-04-07-at-20234-pm.png

0 Likes 0 ·
Show more comments
Embbnux Ji avatar image
Embbnux Ji answered

Hi @Ted Dangerfield you can also add appServer query into iframe src to enable sandbox environment:

<webview
  preload="./preload.js"
  partition="persist:rcstorage"
  allowpopups
  id="rc-widget-adapter-frame"
  src="https://ringcentral.github.io/ringcentral-embeddable/app.html?appServer=https://platform.devtest.ringcentral.com">
</webview>

https://github.com/ringcentral/ringcentral-embeddable/blob/master/docs/config-client-id-and-secret.md#iframe-way

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys