@saghul To use PlatformViews I need to return an android View. Activity is not a View, so I cannot return it. I can obtain callbacks like activity lifecycle. So I thought that I will rewrite the activity provided by the SDK, as a view, but I cannot call some of the methods because they are package private.
For example in onDestroy() we have
if (AudioModeModule.useConnectionService()) {
ConnectionService.abortConnections();
}
both of those methods are package private so I cannot use them. And there are more.
Then I tried to simple return JitsiMeetView omitting all of the other calls, to see if it runs. When I tried to return JitsiMeetView, an exception was thrown that the provided context to the constructor is not an activity which implements JitsiMeetActivityInterface. This makes another problem because I do not have any activity file that I can modify to implement it. I can only obtain an activity which is returned from one of the flutter objects in kotlin code.
I hope it is a bit understandable, if not, let me know and I will try to elaborate more.