Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] PhoneCallManager not working on API 31+ #19633

Open
kazo0 opened this issue Mar 4, 2025 · 0 comments
Open

[Android] PhoneCallManager not working on API 31+ #19633

kazo0 opened this issue Mar 4, 2025 · 0 comments
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@kazo0
Copy link
Contributor

kazo0 commented Mar 4, 2025

Current behavior

Using PhoneCallManager.ShowPhoneCallUI("123456789", "UnoApp142"); throws a SecurityException when calling on an Android device with API 31+

See: https://developer.android.com/reference/android/telephony/TelephonyManager#listen(android.telephony.PhoneStateListener,%20int)

We should be handling the new suggested method in the android docs from API 31 and above. This new method may require a permissions check for READ_PHONE_STATE and possibly others, as defined in the Android docs

UnoApp142.zip

Expected behavior

It should behave like older Android versions:

Image
@kazo0 kazo0 added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Mar 4, 2025
@kazo0 kazo0 changed the title PhoneCallManager not working on API 31+ [Android] PhoneCallManager not working on API 31+ Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

1 participant