Skip to content
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

[Element Call] Integrate Widget API with WebView #1156

Closed
3 tasks
jmartinesp opened this issue Aug 28, 2023 · 1 comment
Closed
3 tasks

[Element Call] Integrate Widget API with WebView #1156

jmartinesp opened this issue Aug 28, 2023 · 1 comment
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks Z-Element Call

Comments

@jmartinesp
Copy link
Member

Depends on #1155 .

The Widget API is a feature meant to deliver messages in JSON format between the Rust SDK and any implemented widget, in this case, the Element Call webview. You can find the PR for the API skeleton here and the actual implementation here (to be merged when this issue was created).

The actual changes needed might need to be edited as we have more info of the implementation details.

Changes needed

  • Run the widget API from the app, using any FFI API available.
  • Read messages from the Widget API using the Comms API inside Widget, pass it to the WebView by evaluating javascript that sends the JSON to some event handler (neither of these parts were ready when this was written).
  • Also do the opposite: add a callback / event listener to the WebView to relay some JSON messages from it to the Widget API using the same Comms.
@jmartinesp jmartinesp added T-Task Refactoring, enabling or disabling functionality, other engineering tasks Z-Element Call labels Aug 28, 2023
@bmarty
Copy link
Member

bmarty commented Jun 6, 2024

I think this is fully done, please re-open if it's not the case. Thanks!

@bmarty bmarty closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks Z-Element Call
Projects
None yet
Development

No branches or pull requests

2 participants