simple-phone icon indicating copy to clipboard operation
simple-phone copied to clipboard

CallService not invoking in xiaomi devices.

Open girubhai opened this issue 6 years ago • 8 comments

Describe the bug

I wanted to call from the app and when I clicked the number I want to call, I got redirected to my phone default caller.

To Reproduce

  1. Open the app
  2. Pick any number and dial.
  3. Note the issue

I debug the app and notice that CallService not invoking.

Device Details

  • SDK:23,
  • Brand:Xiaomi,
  • Model:Redmi 3S

girubhai avatar Aug 08 '19 07:08 girubhai

Thanks for the report.

After step 1. shouldn't the app ask you to set is as default Phone app?

image

If it's not set as default, CallService won't be notified about calls.

It might be a problem with the particular device, but I don't have access to that model, so I can only rely on what you can tell me. Maybe you can attach the logs from Logcat to this issue and they would shed some light on the problem.

arekolek avatar Aug 09 '19 08:08 arekolek

@arekolek thanks to reply.

It shows popup to set default app and also it got default. But the problem is that after entering number it doesn't show calling screen of this app instead it shows default phone dial screen i.e. InCallUI shows calling screen of phone.

I did verify that on other devices it invoke to CallService class during call then CallActivity class start. but in xiaomi device it didn't invoke CallService class hence CallActivity not started.

girubhai avatar Aug 09 '19 09:08 girubhai

any soution in xiaomi devices

RijoshEnfin avatar May 21 '20 05:05 RijoshEnfin

I am having same issue on some Xiaomi Devices not all of them. the InCallService ain't getting invoked. Any help please?

antonyhayek avatar Nov 16 '20 11:11 antonyhayek

Yes, I got the same issue on Nubia Z17. I guessed it maybe came from the default only worked on Dial not Call UI. Cause I noticed that in App info settings, I could set the "phone" default to simple-phone but not "Call" where only be the system default.

power76 avatar Feb 03 '21 08:02 power76

By the way, it work well on Simulator. So I think the phone vendor maybe revised something.

power76 avatar Feb 03 '21 08:02 power76

@girubhai @RijoshEnfin @antonyhayek @power76 did you try reporting this issue to Xiaomi? I guess it should be easy given that you can use this project as a Minimum Verifiable Example that they can use to reproduce the issue

Not sure where you can report it, maybe there is some "Report bug" option in the system settings or some other manufacturer app

arekolek avatar Feb 04 '21 09:02 arekolek

@girubhai @RijoshEnfin @antonyhayek @power76 did you try reporting this issue to Xiaomi? I guess it should be easy given that you can use this project as a Minimum Verifiable Example that they can use to reproduce the issue

Not sure where you can report it, maybe there is some "Report bug" option in the system settings or some other manufacturer app

hi, arekolek Thanks for your reply. And the phone I used is made by Nubia not Xiaomi. And I have tried to add an Intent filter into the AndroidManifest.xml as below: <intent-filter> <action android:name="android.intent.action.DIAL" /> <action android:name="android.intent.action.CALL" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter>

Then it can be setting default in Phone and Call app setting. But cannot work well.

power76 avatar Feb 05 '21 01:02 power76