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

Allow httpsCallable functions to use the same deserialization as firestore

Open ColtonIdle opened this issue 2 years ago • 4 comments

What feature would you like to see?

Allow usage of the typical class mapper in httpsCallables. This feature request came out of this QandA on stackoverflow: https://stackoverflow.com/questions/70448170/firebase-and-android-gethttpscallable-how-to-deserialize-json-into-object/70451194#70451194

How would you use it?

Essentially, if I have an app that uses purely firestore, then I don't have any typical json deserializer bundled in my app code (because Im using firestore). But if I have a one off call that uses an httpsCallable that returns json, I need to either add a 3rd party library like gson, jackson, etc. I'd ideally just like to use the stuff that is already shipping with my app just for brevity and for the sake that I know how the deserializer behaves with null values, empty values, etc.

ColtonIdle avatar Dec 28 '21 02:12 ColtonIdle

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Dec 28 '21 02:12 google-oss-bot

Hi @ColtonIdle, thanks for this request. With that said, I've marked this ticket so that our engineers can take a look once they have the time.

argzdev avatar Dec 28 '21 09:12 argzdev

@argzdev @schmidt-sebastian has anyone been able to take a look at this? It seems like if documentRef was removed as an arg, then this would be possible?

ColtonIdle avatar Jul 02 '22 05:07 ColtonIdle

cc: @ywmei-brt1 who has been doing some work related to serialization.

thatfiredev avatar Jul 04 '22 13:07 thatfiredev