Reputation: 65
i've implemented the request_sync - however i've only got it triggered from an EXEC and a QUERY. How do you implement it for a user manually refreshing their devices in the app?
Upvotes: 0
Views: 101
Reputation: 11970
REQUEST_SYNC is an ordinary HTTP API that you have full control over calling as the app developer. When it is called, it triggers a new SYNC
event from the HomeGraph, allowing you to return the full list of user's devices again. You can tie it to any sort of app-based event you want, whether it happens when the page reloads, when the user presses a refresh button, or anything else.
Upvotes: 1