Nice Article… I really want to see how you are going to make this code as unit testable.
Arpit Choudhary

I will not.

It’s already well decoupled and android integration tests will work perfectly with current architectures.

For Unit Test, basically what you need to do, is to hide all interactions with framework behind interfaces.
I like an idea of the tests, and i think that every app should have ones , but for us more important to invest in more features rather than make code fully Unit testable.

GCMNetworkManager using JobScheduler underneath when running on SDK ≥ 21.

FCM JobDispatcher was in beta when we built our app. Maybe later I will migrate it from GCMNetworkManger to JobDispatcher.

Like what you read? Give Yonatan V. Levin a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.