jiti-meet/react/features/mobile
Paweł Domas f8294fb312 android: add ConnectionService
* feat(Android): implement ConnectionService

Adds basic integration with Android's ConnectionService by implementing
the outgoing call scenario.

* ref(callkit): rename _SET_CALLKIT_SUBSCRIPTIONS

* ref(callkit): move feature to call-integration directory

* feat(ConnectionService): synchronize video state

* ref(AudioMode): use ConnectionService on API >= 26

Not ready yet - few details left mentioned in the FIXMEs

* feat(ConnectionService): add debug logs

Adds logs to trace the calls.

* fix(ConnectionService): leaking ConnectionImpl instances

Turns out there is no callback fired back from the JavaScript side after
the disconnect or abort event is sent from the native. The connection
must be marked as disconnected and removed immediately.

* feat(ConnectionService): handle onCreateOutgoingConnectionFailed

* ref(ConnectionService): merge classes and move to the sdk package

* feat(CallIntegration): show Alert if outgoing call fails

* fix(ConnectionService): alternatively get call UUID from the account

Some Android flavours (or versions ?) do copy over extras to
the onCreateOutgoingConnectionFailed callback. But the call UUID is also
set as the PhoneAccount's label, so eventually it should be available
there.

* ref(ConnectionService): use call UUID as PhoneAccount ID.

The extra is not reliable on some custom Android flavours. It also makes
sense to use unique id for the account instead of the URL given that
it's created on the per call basis.

* fix(ConnectionService): abort the call when hold is requested

Turns out Android P can sometimes request HOLD even though there's no
HOLD capability added to the connection (what!?), so just abort the call
in that case.

* fix(ConnectionService): unregister account on call failure

Unregister the PhoneAccount onCreateOutgoingConnectionFailed. That's
before the ConnectionImpl instance is created which is normally
responsible for doing that.

* fix(AudioModeModule): make package private and run on the audio thread

* address other review comments
2019-01-31 17:20:53 +01:00
..
audio-mode Remote video menu post-PR improvements 2019-01-09 12:13:30 +01:00
background feat(App): refactor App and split it into BaseApp and App 2018-07-12 11:28:19 -05:00
call-integration android: add ConnectionService 2019-01-31 17:20:53 +01:00
external-api feat(external_api): export sendEvent function 2018-07-18 22:47:18 -05:00
full-screen feat(App): refactor App and split it into BaseApp and App 2018-07-12 11:28:19 -05:00
incoming-call ref(app): move initialization into componentDidMount 2019-01-02 10:02:04 +01:00
network-activity ref: move all prop type declaration to flow 2018-11-07 17:38:10 +01:00
permissions Reorganize calendar access request flow 2018-03-23 07:53:36 +01:00
picture-in-picture Replace console with logger 2018-08-05 17:04:19 -05:00
proximity ref(mobile/proximity): convert middleware to a state listener 2018-05-30 16:29:27 +02:00
wake-lock ref(mobile/wake-lock): convert middleware to a state listener 2018-05-30 16:29:27 +02:00