The issue is based in the "destroy" method of the publisher.
Based in the following documentation:
For publisher: Releases this object, including all hardware and UI resources bound to it. After you have called this method, you cannot reuse the publisher.
For subscriber: Releases this object, including all hardware and UI resources bound to it.
The issue, in my application, when I disconnect:
For publisher: obviously I have do call destroy method of the publisher, and it is making my application crash. If I don't call the destroy method, do not make any difference (no memory leak and the UI is released). Is it right?
For subscriber: obviously I have do call destroy method of the publisher too, and it is not making my application crash. If I don't call the destroy method, the UI is frozen and eventually can not reconnect.
I'm developing a react-native project using last version SDK OpenTok. I'm using https://github.com/callstack/react-native-opentok/tree/master/example as base of my project. I used your code example for Android as base in the development.
I read your API document too.
The issue is based in the "destroy" method of the publisher.
Based in the following documentation:
The issue, in my application, when I disconnect: