Some Android users running the most recent beta release of the operating system, Android 12 Beta 3, received a slew of warnings titled “Foreground Service BG-Launch Restricted” a few days ago.
Following an investigation, it was discovered that the program being banned, com.google.android.inputmethod.latin, is a Gboard, which is Google’s virtual keyboard for Android and iOS devices.
Google appears to have attempted to update some form of media connected to the Gboard app, resulting in continual notifications.
“Apps that target Android 12 (API level 31) can no longer activate foreground services while operating in the background, except in a few specific cases,” according to the Android Developer Website. If an app attempts to start a foreground service while the app is running in the background and the foreground service does not meet one of the exceptional conditions, the system throws a Foreground Service Start Not Allowed Exception.”
In other words, the foreground action that causes the notifications is almost certainly a download. Because customers are receiving dozens of notifications in addition to the one issued by Gboard, it may take some time to clear the notifications as the “clear all” button may not be useful. The main line is that you should not be concerned if you receive such notifications.
App developers affected by this change should use the WorkManager programming interface, which is recommended for initiating high-priority background tasks.
If the handset is your daily driver, the only way to prevent it is to wait for the stable release.