How do I integrate Ringover into my application with the Web SDK?
The Ringover Web SDK allows you to embed the Ringover dialer directly into your application, CRM, or internal tools.
With this integration, you can make calls, send SMS messages, and manage communication events without switching apps. Learn how to install, configure, and customize the Ringover Web SDK.
Before you beginBefore integrating the Ringover Web SDK, make sure you have the following:
- An active Ringover account.
- Access to the application or website where you want to embed Ringover.
- Basic knowledge of HTML and JavaScript.
The Web SDK uses an iframe to display the Ringover Webapp directly inside your application.
💡 Tip: The SDK is especially useful for developers looking to integrate Ringover's communication features into their existing business tools.
Install the Ringover Web SDK
You can install the Web SDK using a JavaScript file or via npm, depending on your development environment.
Option 1: Install with JavaScript
- Open your application's HTML file.
- Add the following script to load the SDK:
<script src="https://webcdn.ringover.com/resources/SDK/1.1.3/ringover-sdk.js"></script>
- Initialize the SDK:
const ringover = new window.RingoverSDK();
Option 2: Install with npm
If your application uses Node.js or a JavaScript build tool:
- Open your terminal.
- Run the following command:
npm install --save ringover-sdk
- Import and initialize the SDK:
import RingoverSDK from "ringover-sdk"; const ringover = new RingoverSDK();
💡 Tip: Choose the installation method that best fits your development environment.
3. Embed the Ringover dialer into your application
Once the SDK is installed, you can display the Ringover dialer directly inside your application.
Generate the dialer
- Open your application's JavaScript code.
- Create an instance of the SDK with your desired settings.
- Use the
generate()method to display the Ringover Webapp.
For example, with the JavaScript version loaded in the browser:
const options = {
size: "medium",
animation: true
};
const ringover = new window.RingoverSDK(options);
ringover.generate();
The SDK generates an iframe containing the Ringover Webapp. Users can then log in to their Ringover account and access the dialer directly from your application.
4. Customize and control the dialer
The Ringover Web SDK allows you to adapt the dialer's appearance and behavior to your application's needs.
Customize the display
You can configure the following options:
- Size:
big,medium,small, orauto. - Position: placement of the dialer on the screen.
- Container: HTML element in which to display the iframe.
- Animations: enable or disable display animations.
- Access icon: show or hide the button used to open and close the dialer.
Configuration example:
const ringover = new window.RingoverSDK({
type: "fixed",
size: "medium",
position: {
bottom: "50px",
right: "50px"
},
animation: true,
trayicon: true
});
ringover.generate();
Control the dialer with JavaScript
The SDK also provides several methods to interact with Ringover from your application.
| Methode | Description |
|---|---|
show() |
Show the dialer |
hide() |
Hide the dialer |
toggle() |
Show or hide the dialer |
dial(number) |
Place a call to a number |
sendSMS(number, message) |
Send an SMS message |
changePage(page) |
Navigate to a page in the Ringover Webapp |
destroy() |
Remove the embedded dialer |
For example, to place a call:
ringover.dial("+33123456789");
To hide the dialer:
ringover.hide();
💡 Tip: These methods allow you to build communication workflows directly inside your application—for example, placing a call from a contact's record.
5. Handle events and troubleshoot integration issues
The Web SDK allows your application to react to Ringover events, including incoming calls and call status changes.
Listen for call events
Use the on() method to register event listeners.
For exemple :
ringover.on("ringingCall", (event) => {
console.log("Appel entrant ou sortant :", event.data);
});
ringover.on("answeredCall", (event) => {
console.log("Appel décroché :", event.data);
});
ringover.on("hangupCall", (event) => {
console.log("Appel terminé :", event.data);
});
Other events are also available:
dialerReady: the dialer is ready to make and receive calls.login: a user logs in.logout: a user logs out.smsSent: an SMS message is sent.smsReceived: an SMS message is received.
Troubleshoot common issues
If the Ringover dialer is not working properly:
- Check the SDK installation and ensure the JavaScript file loads correctly.
- Check your Ringover account and make sure the user is logged in.
- Verify the iframe configuration, particularly its size, container, and position.
- Check browser permissions, especially microphone access for calls.
- Check the browser console to identify any JavaScript errors.
You can also use the following method to check the iframe's status:
ringover.checkStatus();
To go further, consult the official Ringover SDK documentation on GitHub.
🎉 You now know how to embed the Ringover dialer into your application using the Web SDK!