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.

没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则