The self-managed PhoneAccount is being registered like this:

PhoneAccount phoneAccount = PhoneAccount.builder(phoneAccountHandle, name)
                .addSupportedUriScheme(CUSTOM_URI_SCHEME)
                .setCapabilities(
                        PhoneAccount.CAPABILITY_SELF_MANAGED |
                        PhoneAccount.CAPABILITY_VIDEO_CALLING |
                        PhoneAccount.CAPABILITY_SUPPORTS_VIDEO_CALLING)
                .setShortDescription(name)
                .build();
telecomManager.registerPhoneAccount(phoneAccount);

When using .placeCall():

Bundle extra = new Bundle();
extra.putParcelable(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle);
telecomManager.placeCall(Uri.parse(CUSTOM_URI_SCHEME + ":" + "[call address] param"), extra);

The ConnectionService is not triggered, and below alert message popup:

Call not sent, no valid number entered.


Additionally, I've tested not using custom URI, using "tel:" scheme, found the phone must have SIM card, in order to trigger the ConnectionService, this behaviour is not the same as document as self-managed, anyone encountered and able to resolve either the above scenarios?

0

There are 0 answers