Open the AndroidManifest. xml file and specify it between the <manifest> and <application> tags . And we need to add this permission to automatically resume foreground service at boot time. And specify the service inside the <application> tag as follows.
Read moreWhat is the foreground of an app?
The foreground contains the applications the user is working on , and the background contains the applications that are behind the scenes, such as certain operating system functions, printing a document or accessing the network.
Read more