I need to upload a record of data from local DB to the server which also includes a video file which may be of about 30 MB size. Above upload happens when the network gets available even when the app is killed. Now for detecting network change, in Android N and above CONNECTIVITY_CHANGE and CONNECTIVITY_ACTION are deprecated, so broadcast receiver is not useful. also, the CONNECTIVITY_ACTION is deprecated in API 28 (Pie).
Many answers suggest to use JobSchedular for such tasks but it is useful for smaller uploads.
refered this: Detect CONNECTIVITY CHANGE in Android 7 and above when app is killed/in background
WorkManager https://developer.android.com/topic/libraries/architecture/workmanager.html
So how can I detect the network change in Pie(API 28) when app is killed and perform the above mentioned upload task.