react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

Can not enable calling account on android 11

Open vuletuan opened this issue 4 years ago • 15 comments

Bug report

  • Reproduced on:
  • [ x] Android
  • [ ] iOS

Description

After installation, I requested calling account permission then enable it. Back to the home screen, I can receive calls at all. After that, I kill the app then open the app again but it still shows a pop-up to enable a calling account. I repeat all steps above, but the app still requests calling account. It just happened on android 11. On Android 9, 10 it works fine

Steps to Reproduce

Versions

- Callkeep: 4.0.0
- React Native: 0.63.4
- iOS:
- Android: 11
- Phone model: Samsung M21

vuletuan avatar Mar 25 '21 13:03 vuletuan

Same issue here; after enabling it a few times it then stays persistent enabled.

chrisnta avatar Apr 20 '21 16:04 chrisnta

Same issue here; after enabling it a few times it then stays persistent enabled.

it seems to be a Samsung bug. I updated to the newest version then it worked.

vuletuan avatar Apr 29 '21 02:04 vuletuan

Hello, I also have this issue Do you have any update ?

vijayakm avatar May 06 '21 20:05 vijayakm

Hello, I also have this issue Do you have any update ?

My device's working well. Just update to the latest android version (11) and One UI (3.1).

vuletuan avatar May 08 '21 06:05 vuletuan

i have same issue, samsung galaxy a50 android 11 one UI 3.1, still got this issue, please help

rusliabdulgani avatar Aug 04 '21 05:08 rusliabdulgani

Same issue is occurring on Samsung A020 having android 11. Please keep updated

umairlive490 avatar Aug 25 '21 10:08 umairlive490

In my case, Calling Account needs Phone permission before enable it.

I have to add these to the AndroidManifest.xml following Phone numbers <uses-permission android:name="android.permission.READ_PHONE_STATE" android:maxSdkVersion="29" /> <uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />

On option I need to add additionalPermissions: [PERMISSIONS.ANDROID.READ_PHONE_STATE, PERMISSIONS.ANDROID.READ_PHONE_NUMBERS]

When calling RNCallKeep.setup(options), the library will ask for those permissions. After I granted Phone permission, Calling Account is permanent enabled.

khdkls avatar Sep 28 '21 16:09 khdkls

I have the same issue too. My phone also updated that latest version. But the issue hasn't been resolved. Do you have any solutions for this case?

huynextlevel avatar Jan 10 '22 17:01 huynextlevel

This is happening on Samsung S10 Android 12, anyone figured this out?

armouti avatar Feb 21 '22 15:02 armouti

@huynextlevel have you been able to fix this? I've seen that you've figured this out in the other thread https://github.com/react-native-webrtc/react-native-callkeep/issues/512 did your solution address it? Could you please provide your fix?

armouti avatar Feb 22 '22 10:02 armouti

I was facing this issue and had to spend hours debugging the call keep native code only to find out that I was missing one permission in my Android Manifest file which is not mentioned in the documentation or at least I could not find it. The permission was for recording audio.

Please add the following line in your AndroidManifest.xml file,

    <uses-permission android:name="android.permission.RECORD_AUDIO" />

mayur-bhandari avatar Feb 23 '22 16:02 mayur-bhandari

@mayur-bhandari I think the issue here is with "calling accounts" persisting on Android. Not sure if it's a samsung specific bug, but seems like when "calling account" permission is given, which corresponds to "registerPhoneAccount" permission. It is not persisted, rather it keeps toggling back off

armouti avatar Feb 24 '22 11:02 armouti

I was facing this issue and had to spend hours debugging the call keep native code only to find out that I was missing one permission in my Android Manifest file which is not mentioned in the documentation or at least I could not find it. The permission was for recording audio.

Please add the following line in your AndroidManifest.xml file,

    <uses-permission android:name="android.permission.RECORD_AUDIO" />

it's works for me and I also provide some permission manually from app info.

devmurarihardik avatar Nov 21 '22 10:11 devmurarihardik