-
Notifications
You must be signed in to change notification settings - Fork 58
[WIP] Add Call emit 'connected' status #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hey @cybex-dev , thanks for submitting. This is a good idea. However, as you already noticed while going through the code, there are already equivalent events that are emitted to achieve the same functionality. For example, |
Hi @charliesantos - since this is still a work-in-progress along with the implementation in Twilio Voice for Flutter, I expect to update this PR including as suggested a discussion for feature request (which I'd happily assist in collaborating on). |
|
Hi @cybex-dev . Sounds good. To start, feel free to define the public facing SDK APIs needed before doing any implementation. That way, we don't have to spend multiple implementation cycles. |
|
Hmm - a good starting point would be replicating (expected) functionality from mobile platforms into web? Feature proposalAs a feature I'm working on and as a possible first step, a core piece of functionality I've found missing on web is registering fcm tokens for incoming call notifications (when the browser is closed, etc via e.g. firebase-messaging-sw.js). Problem/IssueCurrently this is currently handled by (a very responsive) WebSockets implementation (via pstream.js & wstransport.ts), however it does not cater for needs of incoming calls via e.g. PushAPI (browser closed, inactive, etc). Solution / ConsiderationsTo Address the issue above, an ideal implementation would require one to register the browser's FCM token with Twilio. Since functionality for registering FCM tokens aren't present (non that I could see, nor is the native Android Are there any plans to incorporate registering FCM tokens for |
|
Hey @cybex-dev , there is currently no plan to replicate mobile features into JS SDK. Similarly, there is no plan to incorporate registering FCM tokens for JS SDK. We always recommend to use our Voice SDKs for Android, iOS, and React Native instead when developing for mobile. However, it is still something we can consider if we get enough customer interest for this feature. |
Sure - makes sense. For my needs, this would be essential. I could make a PR for this in the Android & iOS have been integrated into the Flutter |
I intend to revisit this in the near future, currently we have functional support for Flutter on platforms:
Once this implementation has stabilised and public API is satisfied, I'll open a separate feature request to continue this discussion in more detail. |
Contributing to Twilio
Pull Request Details
Description
Added (missing?) Call event 'connected' when call is connected to 'other party'. This assists in UI/state management for browser implementation to be aware of the actual call state (event).
Twilio Android/iOS provide this connected functionality, (for usage across platform libraries e.g. Flutter package), one expects this functionality (event) to be present.