callstack / react-native-opentok

React Native OpenTok
202 stars 79 forks source link

All Android Version - Publisher.destroy - Opentok 2.13.+ #87

Open TeruyaHaroldo opened 6 years ago

TeruyaHaroldo commented 6 years ago

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:

  1. 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.
  2. For subscriber: Releases this object, including all hardware and UI resources bound to it.

The issue, in my application, when I disconnect:

  1. 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?
  2. 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.
nsaghir1 commented 6 years ago

Can confirm, having this issue on multiple Android versions.