firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

DatabaseReference.updateChildren with booleans sets 0/1 instead of false/true in iOS

Open pauminku opened this issue 3 years ago • 5 comments
trafficstars

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

pauminku avatar Mar 23 '22 21:03 pauminku

related issue: https://github.com/JetBrains/kotlin-native/issues/3857

pauminku avatar Mar 26 '22 22:03 pauminku

thanks for reporting, if you can find the time to submit PR with a failing test that would be much appreciated!

nbransby avatar Apr 06 '22 18:04 nbransby

Same problem

SuperCaliMan avatar May 19 '22 11:05 SuperCaliMan

Same here

alperenbabagil avatar May 19 '22 17:05 alperenbabagil

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.

b95505017 avatar Jun 14 '22 21:06 b95505017