Basically, since Android 12 is stricter about PendingIntent flags, the way we used to pull GCM tokens and register them broke, since the library used PendingIntent internally without the flags.
So, this will:
move registration to the new, shiny WorkerManager APIs, which replaces JobIntentService
migrates all the DI to dagger-android, because that was actually the easiest way to get the worker to be injected
So on the hilt stuff, it sort of spiraled. Old IntentService stuff had to be migrated to WorkManager, which really can only be injected by hilt, which required redoing the whole app's DI...
Okay this became a whole huge thing.
Basically, since Android 12 is stricter about
PendingIntent
flags, the way we used to pull GCM tokens and register them broke, since the library usedPendingIntent
internally without the flags.So, this will:
WorkerManager
APIs, which replacesJobIntentService
dagger-android
, because that was actually the easiest way to get the worker to be injected