Closed Numoy closed 3 months ago
Hello Numoy,
Thank you for bringing this matter to our attention and for creating a fix.
This issue has already been addressed and resolved within this pull request, which has been merged into the staging branch.
Upon the release of the upcoming SDK version, the changes will be merged into the master branch accordingly.
Thank you! Do you have an ETA on the release to the master branch?
We are actively working on this and aim to merge by tomorrow.
Hello @Numoy, it has been released to master branch.
Currently, nonFatal exceptions are not correctly handled in the Android implementation of the plugin.
This is the Flutter-Code to report exceptions:
The flag to mark an exception as fatal/nonfatal is called "nonfatal". So if the exception is fatal it is "false" and "true" if the exception is fatal.
The corresponding code in the Android-Plugin looks like this:
Here it takes the "nonfatal" as "fatal". This results in that the flag "fatal" is used in the wrong way. If in Flutter the Flag is nonfatal = true it will result in fatal = true in Android or the other way round (nonfatal = false => fatal false).
I decided to change it in the platform code to not introduce a breaking change.