News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Embeddable app login to sandbox
Tags: ringcentral embeddable
Apr 7, 2021 at 8:52am   •   2 replies  •  0 likes
Ted Dangerfield

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/

2 Answers
answered on Apr 7, 2021 at 7:10pm  

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


 0
answered on Apr 7, 2021 at 10:18am  

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


 0
on Apr 7, 2021 at 10:43am   •  0 likes

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?

on Apr 7, 2021 at 10:46am   •  0 likes

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

1617817581742.png

You need to save the settings in Sandbox mode

on Apr 7, 2021 at 11:07am   •  0 likes

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

on Apr 7, 2021 at 11:14am   •  0 likes

I am doing below:

Right click on the widget --> inspect--> Console --> toggleEnv() :


1617819185457.png

on Apr 7, 2021 at 11:40am   •  0 likes

Anirban, thanks for the steps. This works for a standard web app, w/ the embeddable widget, but not with Electron, as it doesn't support right-click context menu's, out-of-the-box. But this is a good start. Thanks!



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us