Processing data in background mode (Android)

Good day ! Could you suggest please… I use cordova-plugin-background-mode, in the top of app.componets I write BackgroundMode.enable();, but just my Android mobile device getting sleep, download from http or insert data to the database stoped ! What I did wrong ? I trying google any information, search in forums, but nearly two days nothing found. My app download a lot of information and it is not very convenient wait in foreground ! I need to found any decision !