Skip to content

Why is doOnDispose not called?

When creating an Observable like this: doOnSubcribe is called, doOnDispose is not called. Why is that? Answer You need to use the doFinally() operator. doOnDispose() has a very narrow use case, where the observable is explicitly disposed. In your example, the observable terminates “naturally” by o…

Cannot resolve symbol “FirebaseInstanceId”

I am trying to use FirebaseInstanceId but keep getting the error “Cannot resolve symbol FirebaseInstanceId”. The modules gradle includes The only thing which exists on com.google.firebase.iid seems to be .zzb. Am I missing something? Answer Make sure you have all of these Just this much is require…