Zentrust / OTPublishersHeadlessSDK

OTPublishersHeadlessSDK for iOS
Other
6 stars 6 forks source link

showBannerUI() the Banner Logo is not shown at the first start, only at the second. #12

Open salvatoreboemia opened 2 years ago

salvatoreboemia commented 2 years ago

Hi

this is my code (based on your docs)


override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)

let sdkParams = OTSdkParams(countryCode: "it", regionCode: "")

OTPublishersHeadlessSDK.shared.startSDK(storageLocation: "myID", 
                                                  domainIdentifier: "myDomain", 
                                                   languageCode: "it",
                                                  params: sdkParams) { response in

 if response.status {
                DispatchQueue.main.async { 
               OTPublishersHeadlessSDK.shared.setupUI(myViewController, UIType: .banner)
                }
 }
}

@mobileOneTrust also with 6.37 SDK version