Sujana Sri
Sujana Sri

Reputation: 1

Background Start Not Allowed for IntentService on Redmi Devices

I'm encountering an issue with starting an IntentService from one application to another on a Redmi device. The problem occurs only on Redmi devices and is related to background restrictions.

Description:

I'm using IntentService, Handler, and Messenger for communication between two applications. When the target application is in a closed state, I attempt to trigger the IntentService and receive the following log message:

Background start not allowed: service Intent { cmp=com.example.project/.nonui.services.UploadDataService (has extras) } to com.example.project/.nonui.services.UploadDataService from pid=9276 uid=10620 pkg=com.example.project startFg?=true

This issue is specific to Redmi devices; the service works as expected on other devices.

Details:

Additional Information:

Questions:

  1. How can I resolve the "Background start not allowed" issue on Redmi devices?

  2. Are there any specific considerations for background services on Xiaomi devices with MIUI?

  3. What steps can I take to ensure that the IntentService is triggered correctly even when the app is closed?

Upvotes: 0

Views: 31

Answers (0)

Related Questions