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

Problems when reading long strings using get_string() #2

Closed
britzl opened this issue Sep 9, 2021 · 0 comments
Closed

Problems when reading long strings using get_string() #2

britzl opened this issue Sep 9, 2021 · 0 comments

Comments

@britzl
Copy link
Contributor

britzl commented Sep 9, 2021

Reported on the forum:

https://forum.defold.com/t/firebase-remote-config/68529/11?u=britzl

"If the value I put in firebase dashboard is longer than 22 characters, then the client can’t read it.
Anything shorter than 22 characters works. Anyone having a similar issue?"

When I put a string value with more than 22 characters, get_string returns empty (!)
Instead, I use get_data, but when I do, I sometimes get extra characters:
I should be getting the string {"key":"value_1"} but I get {"key":"value_1"}Cab or {"key":"value_1"}dee (no idea where those characters come from).

Workaround: Use get_data() instead

@britzl britzl closed this as completed in f70d7be Sep 9, 2021
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

No branches or pull requests

1 participant