firebase-kotlin-sdk
firebase-kotlin-sdk copied to clipboard
DatabaseReference.updateChildren with booleans sets 0/1 instead of false/true in iOS
executing this:
childUpdates["yourTurn"] = false; database.updateChildren(childUpdates)
in Android is saving it correctly. In RealtimeDatabase console I can see:
yourTurn: false
but in iOS it's saving it as int:
yourTurn: 0
Expected behabiour: it should save it as a boolean in iOS as well
related issue: https://github.com/JetBrains/kotlin-native/issues/3857
thanks for reporting, if you can find the time to submit PR with a failing test that would be much appreciated!
Same problem
Same here
It looks like this kind of issue would happen on all kmm libraries which use iOS(darwin) library directly instead of use pure kotlin code.