we have a lot of problems with JobCancellationException causing our android app to hard-crash
we already did a lot of research & tweaking to migitate this problem, but it keeps popping up
this is what we do:
- in Activity.onStart we create quite some (hierarchical) jobs that listens to all kinds of firebase data registrations
- when some data changes via channel, we regularly need to stop some data observers and start new data observers via jobs/channels, for switching this data we use our own switchMap method
we want to use kotlin&coroutines in our production app, but now we are in serious doubt whether coroutines and the JobCancellationExceptions are maybe not stable enough currently
-> Is there anyone that has had a similar experience or can someone offer insight how we prevent JobCancellationException forcing our app to crash?