dart-sip-ua
dart-sip-ua copied to clipboard
Registration works on debug, not on release
Building a VOIP application on Flutter to connect to Freeswitch server webrtc, and loading registration information from Firestore. Problem Android: Registration works ok in debug mode, but when I move to either packaging the application to appbundle and releasing it to be downloaded OR straight running the application in --release mode prevents the registration.
I've tried to set information to UaSettings manually without fetching them from firestore and gone as far as to having the user to manually flip a switch to do the registration. Nothing seems to work and the error code remains:
E/flutter (28324): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (length): Invalid value: Only valid value is 0: 1
E/flutter (28324): #0 JFa._bYe (wMg)
E/flutter (28324): #1 JFa.HPb (wMg:89)
E/flutter (28324): #2 new bFa (gMg:13)
E/flutter (28324): #3 BHe (gMg:7)
E/flutter (28324): #4 new WFa (IMg)
E/flutter (28324): #5 wFa.start (uMg:123)
E/flutter (28324): #6 Kt.register (owg:89)
E/flutter (28324):
I tried to set the information wrong to see if it's the information it's fetching and the error code was just longer but the initial one remains still the same "Unhandled Exception: RangeError (length): Invalid value: Only valid value is 0: 1"
Installed the package,
Set the package accordingly to GitHub example and it works fine on debug
flutter run --release or building to appbundle and releasing it play console
E/flutter (28324): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (length): Invalid value: Only valid value is 0: 1
E/flutter (28324): #0 JFa._bYe (wMg)
E/flutter (28324): #1 JFa.HPb (wMg:89)
E/flutter (28324): #2 new bFa (gMg:13)
E/flutter (28324): #3 BHe (gMg:7)
E/flutter (28324): #4 new WFa (IMg)
E/flutter (28324): #5 wFa.start (uMg:123)
E/flutter (28324): #6 Kt.register (owg:89)
E/flutter (28324):
I expected sip_ua-registration and functionalities to work the same way in debug and release of the version.
Flutter 3.19.0-4.0.pre.29 targetSdkVersion 34 minSdkVersion 29 macOS Sonoma 14.2.1 Testing made with Nokia X30 5G Android 13