arekolek / simple-phone

Bare minimum implementation of an Android Phone app
MIT License
198 stars 71 forks source link

CallService not invoking in xiaomi devices. #9

Closed girubhai closed 5 months ago

girubhai commented 5 years ago

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

arekolek commented 5 years ago

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.

girubhai commented 5 years ago

@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.

RijoshEnfin commented 4 years ago

any soution in xiaomi devices

antonyhayek commented 3 years ago

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

power76 commented 3 years ago

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 commented 3 years ago

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

arekolek commented 3 years ago

@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

power76 commented 3 years ago

@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: `

            <action android:name="android.intent.action.CALL" />
            <category android:name="android.intent.category.DEFAULT" />

`

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