[Android] rxjava2 error handling implementation
Hello,
the new rxjava2 libraries request a specific error handling as documented here
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling
As your Android examples do not seem to show this kind of error handling implementation, could you please provide guidance?
Please find attached crash log of our application when it unsubscribes/disconnects from the Movesense device. The crash only happens sometimes.
The application uses
mdslib-1.39.0(1)-release.aar
com.polidea.rxandroidble2:rxandroidble:1.10.2
io.reactivex.rxjava2:rxandroid:2.1.1
io.reactivex.rxjava2:rxjava:2.2.8
Movesense device
App version 1.1.0
Core version 1.9.2
Thanks
Comments (3)
-
-
- marked as major
Looks like in some environments, such as Xamarin, it is much harder to set the new handler than originally thought. Raising priority to “major” and fix will be in the next release.
-
- changed status to resolved
Fixed in MDS 1.63 and later
- Log in to comment
Thanks for bringing this to our attention. Well fix the samples for the next release.
I found the following article to be helpful:
https://proandroiddev.com/rxjava2-undeliverableexception-f01d19d18048
It mentions that just adding the following to your app is enough:
RxJavaPlugins.setErrorHandler
{TODO
("handle exception")
}