Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To get server-sent events or event-stream in AppGyver and use it to modify an app variable, follow these steps:

  1. Create a new screen in your app where you want to receive the server-sent events.

  2. Add a webview component to the screen.

  3. In the webview properties, set the URL as the endpoint for the server-sent events.

  4. Add a set app variable logic flow to the screen.

  5. Set the trigger as the webview component's event stream.

  6. In the set app variable logic flow, set the variable and value you want to update when the event is received.

  7. Save the screen and test the functionality.

Note: Make sure your server is configured to send server-sent events and the endpoint URL is correct.