-
Notifications
You must be signed in to change notification settings - Fork 16
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
int value is changed to double on Android #461
Comments
➤ Automation for Jira commented: The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3470 |
Hey @Afur, thank you for raising this! We will investigate and see if there's something we can do to prevent this behaviour. The underlying cause of this problem is that the android version of ably-flutter uses Gson internally and this is just the default behaviour of Gson. As a workaround it should be possible to publish the messages as json encoded strings and decode them in your own application code, or just simply cast the values to |
Thanks for the fast response, this solution looks promising. I'll check locally if the library upgrade and that as a fix works for now. Eventually, I'll submit PR with that and you'll test whether it covers all yours use cases or didn't break something. |
Issue still exists I've added comment in #462. Code with fix is missing on main even when PR is merged. Probably has been removed with some merge conflicts commit |
Hey, on Android I'm facing an issue where all of my
int
values from json passed in message asdata
are converted todouble
on Dart side.Example:
I send as
data
:I receive as
Message.data
(only on Android, iOS works fine):The text was updated successfully, but these errors were encountered: