We have an iPhone application that is backed by Core Data. We use int64 in our core data store and I am wondering if we need to do anything special to store the number in firebase. I am wondering about this as javascript does not support 64 bit unsigned integers. We also are writing a javascript app that will have to read this number.
One approach I can think of is to store this as string and then convert it to int64 on the iPhone client. However this seems little bit tedious and firedata does not seem to support such translations directly. We will also have to add validation on this attribute in Firebase - so the validation would be that instead of a number it will be a string with only digits.
Has anyone encountered these issues and what would be the recommended approach for this issue ?
This can indeed be a tricky situation. First just to make the situation clear (I think you are aware of this, but just to avoid any confusion):
As for your options, I suspect you have a good handle on these as well, but you could:
There may be other options, but these are the ones that immediately come to mind. Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With