Android 14 foreground services: declare the type and permission
A foreground service can keep certain user-visible work running while an app is not on screen. Starting with Android 14, apps that target API level 34 or higher must declare a type for each foreground
otf-kit.hashnode.dev7 min read