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.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠