voximplant / flutter_voximplant

Voximplant Flutter SDK
MIT License
9 stars 7 forks source link

onIncominCall listener не срабатывает после app restart #1

Closed ivanesi closed 4 years ago

ivanesi commented 5 years ago

При дебаге если рестартнуть приложение не срабатывает листенер _client.onIncomingCall = _onIncomingCall; Хотя в логах видно I/VOXSDK ( 9385): Invoke onIncomingCall

Если остановить дебаг и включить заново то все ок.

YuliaGrigorieva commented 5 years ago

Добрый день!

Пожалуйста, уточните, что имеется в виду под "рестартнуть приложение"? Hod reload или что-то другое?

ivanesi commented 5 years ago

Нет при hot reload все норм.

Баг при hot restart. Кнопка Restart в дебагере vsCode : image

Или Shift+r в терминале.

AlaaEldeenYsr commented 4 years ago

I'm facing the same issue, any updates ?

VladimirBrejcha commented 4 years ago

@AlaaEldeenYsr , We have researched this issue, it is most likely related to hot restart realisation. According to documentation:

If the package brings platform-specific code (Java/Kotlin for Android, Swift/Objective-C for iOS), that code must be built into your app. Hot reload and hot restart only update the Dart code, so a full restart of the app might be required to avoid errors like MissingPluginException when using the package.

Voximplant Flutter SDK have platform-specific code, so functionality like hot restart might not work correctly. I would recommend to use hot reload (as it does not rebuild the state but instead just injects updated source code) or full restart.