getConfiguration

Retrieving the current configuration can be useful to validate your setup, especially if you have multiple configurations in an App.

Get the current configuration of the Capacitor SDK by calling the following:
getConfiguration(): Promise<MXOResult<MXOConfiguration>>

Example of usage:

MedalliaMXO.getConfiguration()
	.then(mxoResult => {
		if (mxoResult.value && mxoResult.value.apiName) {
			// error case
			console.error(mxoResult.value)
		} else {
			// success case
			console.log("Configuration: ", mxoResult.value)
		}
	})
	.catch(error => {
                console.error(error)
	})
try {
	const {value} = await MedalliaMXO.getConfiguration()
        if (value && value.apiName) {
            	// error case
            	console.error(value)
        } else {
            	// success case
            	console.log("Configuration: ", value)
        }
} catch (error) {
        console.error(error)
}