Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cached payload data is returned as base64 string #39

Closed
AlTavares opened this issue Nov 22, 2023 · 3 comments · Fixed by #40
Closed

Cached payload data is returned as base64 string #39

AlTavares opened this issue Nov 22, 2023 · 3 comments · Fixed by #40

Comments

@AlTavares
Copy link

I got some JSON Decoding crashes while trying to read the payload for my experiments variants while the app is offline. For some reason it's returning as a base64 string.

When the user has connection it doesn't happen.

Example:

returned payload: eyJwYXlsb2FkIjp7InVzZV90b2RheV9yZWRlc2lnbiI6dHJ1ZX19
base64 decoded: {"payload":{"use_today_redesign":true}}

Expected payload (this is returned when the app is online):

([String : Any?]) 1 key/value pair {
  [0] = {
    key = "use_today_redesign"
    value = true
  }
}
@bgiori
Copy link
Collaborator

bgiori commented Nov 22, 2023

Hi @AlTavares, thanks for reporting. What version of the SDK are you using?

@AlTavares
Copy link
Author

1.12.0

@bgiori
Copy link
Collaborator

bgiori commented Nov 22, 2023

fixed in v1.12.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants