react-native-webrtc / react-native-webrtc/react-native-callkeep

System does not support feature android.software.connectionservice

Open
#491 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.1k
Forks
511
Avg merge
9h 12m
Merged PRs (30d)
2

Description

Bug report

Description

App crash on Android 6.0, 7.1.1 and 7.1.2

This is my Manifest

        <service
            android:name="io.wazo.callkeep.VoiceConnectionService"
            android:foregroundServiceType="microphone"
            android:label="Wazo"
            android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE">
            <intent-filter>
                <action android:name="android.telecom.ConnectionService" />
            </intent-filter>
        </service>

build.gradle

    ext {
        buildToolsVersion = "29.0.3"
        minSdkVersion = 23
        compileSdkVersion = 30
        targetSdkVersion = 30
        kotlinVersion = "1.4.32"
        ndkVersion = "20.1.5948944"
    }

Versions

- Callkeep: 4.1.0
- React Native: 0.65.1
- Android: Android 7.1.2
- Phone model: SM-G973N 

Logs

java.lang.UnsupportedOperationException: System does not support feature android.software.connectionservice
    at android.os.Parcel.readException(Parcel.java:1696)
    at android.os.Parcel.readException(Parcel.java:1637)
    at com.android.internal.telecom.ITelecomService$Stub$Proxy.registerPhoneAccount(ITelecomService.java:937)
    at android.telecom.TelecomManager.registerPhoneAccount(TelecomManager.java:839)
    at io.wazo.callkeep.RNCallKeepModule.registerPhoneAccount(RNCallKeepModule.java:590)
    at io.wazo.callkeep.RNCallKeepModule.registerPhoneAccount(RNCallKeepModule.java:143)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
    at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
    at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
    at android.os.Looper.loop(Looper.java:154)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
    at java.lang.Thread.run(Thread.java:761)

Is there any wrong with my configuration?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with RNCallKeepModule.java at registerPhoneAccount around line 590, then compare the reported Manifest and build.gradle settings with the Android 6 and 7.1 logs. Done means determining whether the configuration is invalid or the unsupported connectionservice feature needs to be handled without the app crashing.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.