webex / webex-android-sdk

Android SDK for Webex
https://developer.webex.com/docs/sdks/android
Other
21 stars 30 forks source link

Upgrading CISCO SDK from 2.8 to 3.7 : App got crash while join the call in Android CISCO sdk 3.7 #128

Open CDL24 opened 1 year ago

CDL24 commented 1 year ago

Hello Team, When i am going to join a video call app will get crashed. I need one clarification here: My code written in java using CISCO android sdk 2.8 version which is working fine. Now we are upgrading CISCO sdk to 3.7.0.(which is written in kotlin) First thing can i integrate CISCO android SDK 3.7 in to my existing Java code ?

** webExAgent.getWebEx().getPhone().dial(spaceId, MediaOption.Companion.audioVideo(localVideo, remoteVideo), new CompletionHandler<Call>() {
                        @Override
                        public void onComplete(Result<Call> result) {

                            if(result.isSuccessful()){
                                Log.i("Call", "===onComplete: ");
                            }
                        }
                    });**

above is the code how i am calling dial() method from Java code. This code will cause a crash. Below i am attaching evaluated error screenshot while debugging above code

Screenshot 2022-11-17 at 4 11 00 PM
jbenyovs commented 1 year ago

@CDL24 please review the Migration Guide from SDK 2.x to 3.x here https://github.com/webex/webex-android-sdk/wiki/Migration-Guide-from-SDK-2.x-to-3.x , it should help you with moving from Android 2.x to 3.x .

CDL24 commented 1 year ago

Hello, @jbenyovs thanks for the reply. Now I am trying to use 3.7 SDK with kotlin code and when i am executing call joining code app is crashing.

webExAgent.getWebEx().getPhone().dial(spaceId, MediaOption.Companion.audioVideo(localVideo, remoteVideo), new CompletionHandler() {} this code causing crash.

Below attached console log. Can you please help.

Screenshot 2022-11-21 at 9 48 06 AM
jbenyovs commented 1 year ago

@CDL24 can you please test the https://github.com/webex/webex-android-sdk-example sample as well? That should give you a good blueprint about how the calling function should work. Please test the behaviour there and if it works, then replicate the code from there, the sample is also on 3.7.0 already.

CDL24 commented 1 year ago

Yes @jbenyovs i am referring the sdk 3.7.0 kitchen sink app code. I am now able to authorise jwt token and able to initialise webex object.

The process flow at my side is below one :

  1. Initialize jwtAuthorization and webex object
  2. Initialize webex sdk
  3. Authorizing user by jwt token
  4. initiate call by providing spaceId but somehow dial() method gives error in response

below i am attaching error object. Can you please help why i am unable initiate call. Any clue is helpful for me to go ahead. Thanks in advance.

Screenshot 2022-11-22 at 6 21 24 PM
jbenyovs commented 1 year ago

@CDL24 based on so little info it's difficult to tell what might be the issue here. Can you please open a dev support ticket with us on devsupport@webex.com and send us the full verbose logs from the KitchenSink app?

Stackflood commented 10 months ago

@CDL24 , we are not able to even start the app after the upgrade. Its crashing and showing this issue : https://github.com/webex/webex-android-sdk/issues/127

Can you please help ?