Update DynamoDB data is not automatically updating IOS App with AWS Amplify Datastore and API

0

Hello,

I have created an IOS App using AWS Amplify. I have the app configure with Amplify with all the necessary AWS Plugins. I am having an issue with updates to DynamoDB not updating in the IOS App. I am using Amplify.DataStore.observeQuery to check for any changes to the database. If I change some data in the "content (datastore)" of Amplify Studio the data on the IOS App does update. My issue is when I update the data in DynamoDB, the IOS app will not update until I run Amplify.DataStore.clear() and then Amplify.DataStore.observeQuery() functions. I am sending data to DynamoDB using MQTT with a wifi module and I would like to see real time results of the data being sent to DynamoDB on the IOS App without manually pressing any buttons. I believe I am close, but I must be missing something to get it automatically update instead of manual pressing buttons to run the clear and observeQuery functions. Feel free to add comments to this post with any questions. Thank you all in advance.

No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas