Zentrust / OTPublishersHeadlessSDK

OTPublishersHeadlessSDK for iOS
Other
7 stars 5 forks source link

[React Native] Download issue #18

Closed lorenc-tomasz closed 1 year ago

lorenc-tomasz commented 1 year ago

Hi, I couldn't find the place to write about this issue but after updating the React Native SDK to version higher after 202209.1.1 causes the OneTrust download failed with error Error: Optional(OTPublishersHeadlessSDK.ManagerError.invalidDownloadData) issue.

lorenc-tomasz commented 1 year ago

On native code the error response looks like:

error   Error?  (error = <parent failed to evaluate: Unable to determine byte size.>)   some
lorenc-tomasz commented 1 year ago

The same on Android

naleon commented 1 year ago

same

jkraus-wyn commented 1 year ago

@lorenc-tomasz any update? getting same thing as you.

lorenc-tomasz commented 1 year ago

@jkraus-wyn Yes. The SDK version used in app has to be the same as in the OneTrust dashboard. Basically in OneTrust dashboard you can set the SDK version and if it matches the sdk version in the app, it works. I was not aware of this, as I had no access to OneTrust dashboard.

From docs (https://www.npmjs.com/package/react-native-onetrust-cmp):

Versioning

The SDK version used must match the version of the JSON published from your OneTrust instance. For example, if you've published version 6.10.0 of the JSON in your OneTrust environment, you must use npm package version 6.10.0 as well. It is recommended to specify a version to avoid automatic updates, as a OneTrust publish is required when you update your SDK version.