The iOS implementation of how Firebase Cloud Functions HTTPS errors are handled does not align with Android (or otherwise).
See:
https://github.com/GitLiveApp/firebase-kotlin-sdk/blob/master/firebase-functions/src/appleMain/kotlin/dev/gitlive/firebase/functions/functions.kt#L95
Instead of mapping it correctly, it currently just returns a hardcoded FirebaseFunctionsException with:
- An error code that is always
FunctionsExceptionCode.UNKNOWN
- A
description!! (of the class) as the message
- An always
null details
I see that there is a comment that fixing this may depend on firebase/firebase-ios-sdk#11862, but that issue was closed some time ago.
Is there any way this can be fixed so that we can get the correct values being sent from Firebase?
Thanks
The iOS implementation of how Firebase Cloud Functions HTTPS errors are handled does not align with Android (or otherwise).
See:
https://github.com/GitLiveApp/firebase-kotlin-sdk/blob/master/firebase-functions/src/appleMain/kotlin/dev/gitlive/firebase/functions/functions.kt#L95
Instead of mapping it correctly, it currently just returns a hardcoded
FirebaseFunctionsExceptionwith:FunctionsExceptionCode.UNKNOWNdescription!!(of the class) as the messagenulldetailsI see that there is a comment that fixing this may depend on firebase/firebase-ios-sdk#11862, but that issue was closed some time ago.
Is there any way this can be fixed so that we can get the correct values being sent from Firebase?
Thanks