You can use the real time in-app functionality by using the function.
showRealTimeInApp(
screenName: String? = nil,
params: Dictionary<String, String>? = nil
)
here the params are the custom parameters used for comparison.
/**
* Set category path for using in real time in app comparisons
*/
func setCategory(path: String?)
/**
* Set cart item count for using in real time in app comparisons
*/
func setCart(itemCount: String?)
/**
* Set cart amount for using in real time in app comparisons
*/
func setCart(amount: String?)
/**
* Set state for using in real time in app comparisons
*/
func setState(name: String?)
/**
* Set city for using in real time in app comparisons
*/
func setCity(name: String?)