-
Notifications
You must be signed in to change notification settings - Fork 0
Call rating
This guide is meant for 4.0 version. If you are integrating a 3.x SDK version, please take a look at this guide instead.
Starting from 2.7.0 version the Kaleyra Video SDK provides a built-in call rating mechanism that can be enabled in order to gather feedback from your app end users about the call they have just performed in your app through the Kaleyra Video SDK. If enabled (it is disabled by default), when a call ends, the Kaleyra Video SDK will display a popup asking the user to leave a rating for the call performed giving a vote between 1 to 5 stars and an optional comment.
It looks like this:
After the user has voted a thank you card is displayed:
In order to enable this feature you must tell the SDK to show the rating UI at the end of a call through the CallViewController.Configuration object. When you create the configuration value for the CallViewController you can tell it you want to present the rating UI at the end of the call.
Let's take a look at an example:
func presentCall(_ call: Call) {
let controller = CallViewController(call: call, configuration: .init(feedback: .init()))
controller.delegate = self
callWindow.makeKeyAndVisible()
callWindow.set(rootViewController: controller, animated: true)
}
That's it! this is what it must be done in order to enable the call feedback popup in your app.
Looking for other platforms? Take a look at Android, Flutter, ReactNative, Ionic / Cordova. Anything unclear or inaccurate? Please let us know by submitting an Issue or write us here.