Import and initial configuration
- Import NucleusSDK in AppDelegate
- In the function application include the following fields:
NucleusSDK.publicKey = "<Your-public-key>"
NucleusSDK.idfaMode = .explicit
NucleusSDK.locationMode = .explicit
- In the function application include the following fields:
private var _nucleusPageSessionId: NucleusSDK.PageSessionId!
Override viewDidAppear and include _nucleusPageSessionId = NucleusSDK.beginPageSession(pageId: “<name-of-the-current-view>”, referrerPageId: nil)
Override viewDidDisappear and include NucleusSDK.endPageSession(pageSessionId: _nucleusPageSessionId) - To enable scrollView, include the following in override viewDidAppear:
NucleusSDK.setScrollView(pageSessionId: _nucleusPageSessionId, _tableView)