Closed shanih closed 2 years ago
Hm, I don't think could be an issue related to Hilt, since we just help you create the WorkerFactory but the rest is up to your configuration and WorkManager. This seems more like a WorkManager issue and that maybe when deleting the Hilt portion something else was accidentally deleted. If you're seeing something where the Worker object can't be constructed I think that could be something in Hilt, but so far I don't see anything like that in your logs.
Hi. Using HiltWorker and HiltWorkerFactory works just fine when the app is alive, but after it gets killed, the worker won't initialize. When commenting out every hilt-related code, including the provider in the manifest, the worker works after app killing.
my code: worker -
App -
manifest - tried both
and
logs when trying to start the worker: