-
Notifications
You must be signed in to change notification settings - Fork 142
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
App crashes when incoming call is handled #640
Comments
Based on the crash log, it appears that a foreground service type and permission are required when the application is not running in the background. You need to declare the appropriate foreground service type in the manifest file using:
I believe this should resolve the issue. |
@afalls-twilio I use the app from the commit I cited in the issue description 6ae5839 I see there are some new commits since yesterday but I don't think they are related to the issue.
That was the first thing to check and the permission is granted. It seems the issue is because the microphone permission is "while-in-use" one. At least this is my understanding after reading https://developer.android.com/develop/background-work/services/fgs/restrictions-bg-start Here is an excerpt from Android official documentation
And it seems that the problem is described in the last sentence. I still reproduce the bug with the current master branch. Can you please confirm it works for you? |
@slavchev yup, was able to reproduce the issue. We will fix the issue, thank you. |
@slavchev This should be fixed with the latest version of the quickstart, just merged in. |
Description
When app is not running and and incoming call is made the app crashes.
Steps to Reproduce
Code
Using the app from the current at moment of writing head of master branch 6ae5839
Expected Behavior
App should be able to accept incoming call even when it is not currently running.
Actual Behavior
App crashes when it is not currently running and tries to accept an incoming call.
Reproduces How Often
It is always reproducible.
Twilio Call SID(s)
Call SID CA9e1f665c43423c143d42e50248023478
Logs
Additional info
App works fine when targetSdk is 33
voice-quickstart-android/build.gradle
Line 12 in 32d0c47
Voice Android SDK
Voice Android SDK version 6.7.1
OS Version
Android 15 (Android security update November 5, 2024)
Device Model
Pixel 6 Pro
The text was updated successfully, but these errors were encountered: