firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
234 stars 38 forks source link

[Bug] Quickstart example of cloud functions is not working (data parameter with numbers is not passed) #1135

Closed gudkovtimur closed 1 month ago

gudkovtimur commented 1 month ago

Description

Quickstart example of cloud functions is not working. Data parameter is not passed. Tested in Unity Editor and android devices, both of emulator and deployed versions. It always return "Firebase.Functions.FunctionsException: The function must be called with two arguments "firstNumber" and "secondNumber" which must both be numbers."

Reproducing the issue

Code is copied without modifications from https://github.com/firebase/quickstart-unity/tree/master/functions/testapp/Assets/Firebase/Sample/Functions

Firebase Unity SDK Version

12.2.1

Unity editor version

2022.3.16f

Installation Method

.unitypackage

Problematic Firebase Component(s)

Functions

Other Firebase Component(s) in use

Authentication, Database, Storage

Additional SDKs you are using

No response

Targeted Platform(s)

Android

Unity editor platform

Windows

Scripting Runtime

IL2CPP

Release Distribution Type

Open-source from this repo

Relevant Log Output

{"verifications":{"app":"MISSING","auth":"VALID"},"logging.googleapis.com/labels":{"firebase-log-type":"callable-request-verification"},"severity":"DEBUG","message":"Callable request verification passed"}

If using CocoaPods for Apple platforms, the project's Podfile.lock

No response

google-oss-bot commented 1 month ago

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

argzdev commented 1 month ago

Hey @gudkovtimur, thanks for reaching out. I'm able to reproduce the issue. It seems that the server side code embedded in the quickstart hasn't been updated for quite sometime. I'll try and see if I can make a pull request to adjust this. Thanks!