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.

沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南