Ask Your Question
0

What is the method for getting server-sent events or event-stream in AppGyver and using it to modify an app variable?

asked 2023-05-15 17:59:42 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-15 18:18:02 +0000

david gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-15 17:59:42 +0000

Seen: 11 times

Last updated: May 15 '23