Open mohsinnaqvi606 opened 8 months ago
Let's try create new file proguard-rules.pro:
-keep class com.twilio. { *; } -keep class tvo.webrtc.* { ; } -dontwarn tvo.webrtc. -keep class com.twilio.voice.* { ; } -keepattributes InnerClasses -dontwarn android.content.pm.PackageManager$ApplicationInfoFlags -dontwarn android.content.pm.PackageManager$PackageInfoFlags
And modify build.gradle:
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
It works with me. Hope it help you
Hi @mohsinnaqvi606 @haduong825
Thanks for reaching out and posting the issue - apologies for getting back so late. I'll be reviewing issues over the weekend.
I have the same problem with twilio_voice, it works fine for me in debug but not in release, the application crashes and the call is cut off, I have all the permissions, the only thing it does in debug is make a call from the twilio number to the twilio number. destination, it uses the phone's calling application for it and has the permissions, but when it is in release it enters the calling application it starts calling and the call is cut off in less than 1 second and the application closes, I have the latest version
TwilioVoice() ..registerPhoneAccount() ..setTokens(accessToken: accessToken, deviceToken: deviceToken) ..requestReadPhoneNumbersPermission() ..requestCallPhonePermission() ..requestManageOwnCallsPermission() ..requestMicAccess() ..requestReadPhoneStatePermission();
TwilioVoice().registerClient(token, "User");
if (await TwilioVoice.instance.isPhoneAccountEnabled()) { } else { await TwilioVoice().openPhoneAccountSettings(); }
try { await TwilioVoice.instance.call.place( from: "+51", to: '+51932147485', extraOptions: { 'CallPersonDetail': callPersonDetail, 'CallCreditDetail': callCreditDetail, }, ); } catch (e) { print('Error al realizar la llamada: $e'); }
samw issue here app crashing on receiving or placing calls in Android - Release mode working fine in debug @cybex-dev please have a look
Issue Summary
I am using 0.0.9 version of plugin The app is crashing on Android in release mode, while I try to place a call, and unable to receive a calls. while app is working fine in profile or debug mode.
Latest version is working fine but I needs old version to customize the UI.