Skip to main content
The First Step
April 7, 2021
Solved

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/

    The First Step
    April 7, 2021

    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

    3 replies

    The First Step
    April 7, 2021

    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

    The First Step
    April 7, 2021

    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?

    Employee
    April 8, 2021

    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