Comments (5)
Unfortunately, currently there is no way to cancel the tasks from Auth and Database. The best you could do now is handle it in the task completion, undoing whatever action is needed if you want to.
from firebase-unity-sdk.
Thanks for the answer! That could work, how ever in the case of Timeout because of poor/no network task wouldn't get completed right? Any ideas on how to handle this properly? I'm currently thinking of possible workarounds for this, just asking in case you have any insights on how to approach this matter.
from firebase-unity-sdk.
@jmarisalandanan
AFAIK, Database on Android would attempt to reconnect back to the server in poor/no network condition. And it will fail the Task if it retried too many times. I think Auth should have similar mechanics.
There is no proper way to actually implement timeout and cancel operation from C# level. Even you throw away the Task you got, in Android SDK level, it will still attempt to send the request until it gave up.
Shawn
from firebase-unity-sdk.
hehe this was exactly was I was looking for, it's a shame it's not possible.
pistoleta.
from firebase-unity-sdk.
Will we have the ability to cancel the task? or set a shorter timeout?
I know I can check if Application has connectivity before calling the Firebase functions. On mobile losing connection is quite common in spotty areas. Currently in my editor, the firebase cloud function call is taking 2min 30sec to time out. It's way too long for players to wait. I could time out the UI, force player to go back 1 screen and let the task run in the background. But if player trigger the call again before the timeout, it would eventually crash Unity. :-(
from firebase-unity-sdk.
Related Issues (20)
- [Bug] iOS crashes when Google sign in is not enabled HOT 2
- [Bug] SignIn With Facebook Exception: Bad access token: {"code":190,"message":"Invalid OAuth access token - Cannot parse access token"} HOT 2
- [Bug] SIGSEGV - Pure virtual function called! HOT 9
- [Bug] SIGSEGV - firebase::Mutex::Acquire() HOT 2
- [Bug] SIGSEGV - FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x<sanitized>) HOT 2
- [Bug] AppCheck fails in debug environment with Firebase 11.9.0 HOT 12
- [Bug] Undefined symbol errors with Firebase SDK v 11.9.0 HOT 1
- [Bug] FirebaseCore_Privacy.bundle not found HOT 14
- [Bug] Unity Editor crashes due to Firebase Core SDK in MacOS. HOT 3
- UnityEditor.AndroidManifest.SetFixedWindowSize Error on build when Firebase Messaging is added HOT 4
- [Bug] DllNotFoundException: Unable to load DLL 'FirebaseCppApp-11_8_1' HOT 5
- Firebase SDK Validation Failed in Unity (Break Symlinks) HOT 10
- [Bug] DllNotFoundException: Unable to load DLL 'FirebaseCppApp-11_8_1' occurs only on iOS builds HOT 4
- [Question] When is the release of the version incorporating firebase-ios-sdk v10.24.0 expected? HOT 3
- [Question] Firebase XCFrameworks are not codesigned HOT 5
- [Question] macOS version does't store player credentials after game quit. HOT 9
- [Bug] Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. HOT 7
- [Bug] AnalyticsFixPropertyRemover for Unity 2021 HOT 4
- [Bug] iOS Build crashing on second launch when made with Xcode 15.3 HOT 4
- [Question] Firestore throws "Cursor has too many values" exception when running an aggregate count query that starts at a specific document HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-unity-sdk.