Recommendation API

Nuance Messaging SDK enables targeting by providing a rules engine within the SDK.

Recommendation API works in conjunction With Data Collection API, Data Collection startSession API must be invoked by the Application prior to requesting recommendation from the SDK.

Public Methods

Following methods are exposed from NuanMessaging class.


	 if(!(nuanMessaging?.isBRReady())!) {
            nuanMessaging?.setBRReadyListener({ (resp, error) in
                nuanMessaging?.isBRReady()
                var dictionary: [String:Any] = [
                    "1" : 1,
                    "sale" : "hello",
                    "three" : 3
                ]
                nuanMessaging?.getRecommendation("test", andEventData: dictionary)
            })
        } else {
            print((nuanMessaging?.isBRReady())!)
        }