Closed kroikie closed 5 years ago
@markflarup
The issue at https://github.com/flutter/flutter/issues/28565 has been closed and moved here. Future collaboration on this issue will be done here.
Hi @markflarup
are you still experiencing this issue with the latest version of Flutter and firebase_database?
If so can you please provide your flutter doctor -v
?
Also, to better address the issue, would be helpful
if you could post a self contained app on github
or the steps to reproduce it.
Thank you
Hi @markflarup are you still experiencing this issue with the latest version of Flutter and firebase_database? If so can you please provide your
flutter doctor -v
? Also, to better address the issue, would be helpful if you could post a self contained app on github or the steps to reproduce it. Thank you
Hi @iapicca
The project I worked on has been terminated so I don't know. It might be okay to close this issue if others do not experience the error.
@markflarup thanks for getting back, please open a new issue if you see this happening again.
Steps to Reproduce
I want to query a Firebase DB collection to figure out whether any document contains a matching string. If no match is found I throw an exception, and if a match is found but another user has already provided that string another exception is thrown. The problem is, if I wrap my code in a transaction and any of the two exceptions is thrown, the exception returned depends on the OS (Android or iOS). The screenshot below highlights the different outcome depending on the platform the code is compiled to:
However, if I do not wrap my code in a transaction the custom exception is thrown on both platforms. Am I handling the exception thrown from a transaction in a wrong manner?
Snippet of the method resulting in the different behaviour including the
runTransaction()
commented out.Logs
Flutter Analyze
Flutter Doctor -v