Search code examples
androidaws-amplifyaws-amplify-sdk-android

Android Amplify- DataStoreChannelEventName RECEIVED_FROM_CLOUD no longer supported


So I updated my amplify library to the latest version and the RECEIVED_FROM_CLOUD datastore event has been removed. Is there a replacement that can be used that does the same thing?


Solution

  • RECEIVED_FROM_CLOUD was an undocumented, internal event. It was removed as of Amplify Android 1.5.0.

    Since then, we have provided documentation for a number of public DataStore events, here.

    Additionally, there is a SUBSCRPTION_DATA_PROCESSED event, which will fire whenever:

    The server sent the client data over the WebSocket subscription. The data was successfully melded back into the local store.

    I think that one is the most direct replacement for the old RECEIVED_FROM_CLOUD.

    Source: I implemented and removed the original RECEIVED_FROM_CLOUD event.