Jitsi Meet in Android: not working


#1

Hi,

We are trying to integrate the Jitsi Meet SDK for Android and we have some little problems.

First of all, (just to be careful), there is a new version updated yesterday 1.21.0 but the documentation is still the one for 1.16.0! Therefore, if one uses ‘org.jitsi.react:jitsi-meet-sdk:+’ and follows the documentation, nothing works.

Leaving that aside, I changed the implementation version to 1.16.0, and now everything seems to compile fine. Nevertheless, this only works when I’m sending a null URL to the view.

Code: ------------------------------------------------------------------

  protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);

  view = new JitsiMeetView(this);
  try{
        view.loadURL(new URL(null));
 }
 catch (MalformedURLException e) {
       e.printStackTrace();
 }
setContentView(view);}

When launching the activity with this, nothing crashes, and the app background is set black. (that’s all).

Nevertheless if I change " view.loadURL(new URL(null)) " for " view.loadURL(new URL(“https://meet.jit.si/Test123”)) ", the app crashes and the LOGCAT shows the following:

LOGCAT: --------------------------------------------------------------------

2018-12-04 18:35:40.703 1175-2130/? I/ActivityManager: START u0 {cmp=com.project.tweender.tweender/.ChatActivity (has extras)} from uid 10250
2018-12-04 18:35:40.704 1175-2130/? I/ActivityManager: ActivityRecord info: ActivityInfo{c4f291c com.project.tweender.tweender.ChatActivity}
2018-12-04 18:35:40.709 1175-2130/? V/WindowManager: addAppToken: AppWindowToken{fd8c8ab token=Token{ac6cafa ActivityRecord{3e33925 u0 com.project.tweender.tweender/.ChatActivity t14113}}} controller={TaskWindowContainerController taskId=14113} at 2147483647
2018-12-04 18:35:40.732 1175-2130/? V/WindowManager: No longer Stopped: AppWindowToken{fd8c8ab token=Token{ac6cafa ActivityRecord{3e33925 u0 com.project.tweender.tweender/.ChatActivity t14113}}}
2018-12-04 18:35:40.735 1175-2130/? V/WindowManager: No longer Stopped: AppWindowToken{fd8c8ab token=Token{ac6cafa ActivityRecord{3e33925 u0 com.project.tweender.tweender/.ChatActivity t14113}}}
2018-12-04 18:35:40.738 1175-2130/? V/WindowManager: Check opening app=AppWindowToken{fd8c8ab token=Token{ac6cafa ActivityRecord{3e33925 u0 com.project.tweender.tweender/.ChatActivity t14113}}}: allDrawn=false startingDisplayed=false startingMoved=false isRelaunching()=false
2018-12-04 18:35:41.098 21760-21760/com.project.tweender.tweender D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f100007, context : com.project.tweender.tweender.ChatActivity@16c78af, Nhwext : 0, get Blur : disable with , null
2018-12-04 18:35:41.105 21760-21760/com.project.tweender.tweender D/ActivityThread: add activity client record, r= ActivityRecord{306ac87 token=android.os.BinderProxy@135c089 {com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity}} token= android.os.BinderProxy@135c089

--------- beginning of crash

2018-12-04 18:35:41.115 21760-21812/com.project.tweender.tweender D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=MainActivity, firebase_previous_id(_pi)=3103280177726627458, firebase_screen_class(_sc)=ChatActivity, firebase_screen_id(_si)=3103280177726627459}]
2018-12-04 18:35:41.121 1175-7116/? V/WindowManager: Adding Window{d40a4d9 u0 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity} to AppWindowToken{fd8c8ab token=Token{ac6cafa ActivityRecord{3e33925 u0 com.project.tweender.tweender/.ChatActivity t14113}}}
2018-12-04 18:35:41.123 1175-7116/? V/WindowManager: addWindow: New client android.os.BinderProxy@d1ce320: window=Window{d40a4d9 u0 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity} Callers=com.android.server.wm.HwWindowManagerService.addWindow:614 com.android.server.wm.Session.addToDisplay:204 android.view.IWindowSession$Stub.onTransact:124 com.android.server.wm.Session.onTransact:165 android.os.Binder.execTransact:698
2018-12-04 18:35:41.124 1175-7084/? W/ActivityManager: Force finishing activity com.project.tweender.tweender/.ChatActivity
2018-12-04 18:35:41.132 1175-7116/? D/HwGameAssistantController: pid=21760, uid=10250, component=ComponentInfo{com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity}
2018-12-04 18:35:41.201 1175-1475/? W/InputDispatcher: channel ‘d40a4d9 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity (server)’ ~ Consumer closed input channel or an error occurred. events=0x9
2018-12-04 18:35:41.201 1175-1475/? E/InputDispatcher: channel ‘d40a4d9 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!
2018-12-04 18:35:41.242 1175-1186/? I/WindowManager: WIN DEATH: Window{d40a4d9 u0 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity}
2018-12-04 18:35:41.242 1175-1186/? V/WindowManager: removeIfPossible: Window{d40a4d9 u0 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity} callers=com.android.server.wm.WindowState.-wrap1:0 com.android.server.wm.WindowState$DeathRecipient.binderDied:2601 android.os.BinderProxy.sendDeathNotice:856
2018-12-04 18:35:41.242 1175-1186/? W/InputDispatcher: Attempted to unregister already unregistered input channel ‘d40a4d9 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity (server)’
2018-12-04 18:35:41.243 1175-1186/? V/WindowManager: postWindowRemoveCleanupLocked: Window{d40a4d9 u0 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity}
2018-12-04 18:35:41.243 1175-1186/? V/WindowManager: Removing Window{d40a4d9 u0 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity} from AppWindowToken{fd8c8ab token=Token{ac6cafa ActivityRecord{3e33925 u0 com.project.tweender.tweender/.ChatActivity t14113}}}
2018-12-04 18:35:41.254 1175-7084/? V/WindowManager: removeAppToken: AppWindowToken{fd8c8ab token=Token{ac6cafa ActivityRecord{3e33925 u0 com.project.tweender.tweender/.ChatActivity t14113}}} delayed=true Callers=com.android.server.wm.DisplayContent.removeAppToken:1004 com.android.server.wm.AppWindowContainerController.removeContainer:285 com.android.server.am.ActivityRecord.removeWindowContainer:1056 com.android.server.am.ActivityStack.removeActivityFromHistoryLocked:4615
2018-12-04 18:35:42.986 6276-21913/? V/FA-SVC: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=MainActivity, firebase_previous_id(_pi)=3103280177726627458, firebase_screen_class(_sc)=ChatActivity, firebase_screen_id(_si)=3103280177726627459}]
2018-12-04 18:35:43.002 6276-21913/? V/FA-SVC: Event recorded: Event{appId=‘com.project.tweender.tweender’, name=‘screen_view(_vs)’, params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=MainActivity, firebase_previous_id(_pi)=3103280177726627458, firebase_screen_class(_sc)=ChatActivity, firebase_screen_id(_si)=3103280177726627459}]}


I think some of the most important lines are the ones after “beginning of crash”:

2018-12-04 18:35:41.124 1175-7084/? W/ActivityManager: Force finishing activity com.project.tweender.tweender/.ChatActivity

2018-12-04 18:35:41.132 1175-7116/? D/HwGameAssistantController: pid=21760, uid=10250, component=ComponentInfo{com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity}

2018-12-04 18:35:41.201 1175-1475/? W/InputDispatcher: channel ‘d40a4d9 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity (server)’ ~ Consumer closed input channel or an error occurred. events=0x9

2018-12-04 18:35:41.201 1175-1475/? E/InputDispatcher: channel ‘d40a4d9 com.project.tweender.tweender/com.project.tweender.tweender.ChatActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!

We would really appreciate some help. (Have already spent many hours trying to solve this, and nothing seems to work)

Thank you very much!