Follow this procedure for any controller in which you'd like the Live Experience
widget to appear.
-
If you haven't already, import the Live Experience iOS framework:
import OracleLive.
-
For each view controller from which a user can either start a call or navigate
to while a call is in progress, update
viewDidAppear with the
following lines of code:
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
Controller.shared.addComponent(viewController: self)
}
Note: If you'd like to use a different appLocation for
different view controllers (for example, to indicate that a user has
contacted an associate from a support tab as opposed to a sales tab), you
can update the appLocation context attribute in
viewDidAppear adding the statement before
addComponent.