aws-amplify / amplify-android

The fastest and easiest way to use AWS from your Android app.
https://docs.amplify.aws/lib/q/platform/android/
Apache License 2.0
249 stars 117 forks source link

[Feature Request] Expose DataStore Orchestrator currentState as an event #1540

Open PS-MS opened 3 years ago

PS-MS commented 3 years ago

Good Evening,

An aim of our app is to provide offline usage while also syncing data between users, it would be great if we could access the Orchestrator's currentState and make the user aware if their device is currently providing real time data updates to other users or not.

While it is currently assumed that any negative DataStore event causes the Orchestrator to fallback to LOCAL_ONLY this is only an assumption.

DataStoreEvent documentation: https://docs.amplify.aws/lib/datastore/datastore-events/q/platform/android/

ankpshah commented 9 months ago

Hello, thank you for submitting the feature request. We appreciate your input and have added it to our backlog.