Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Amplify SDK IOS - Subscription When App Remains Idle for a Long Time #403

Closed
howardevans21 opened this issue Jul 22, 2020 · 2 comments
Closed
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@howardevans21
Copy link

I've followed the ios SDK for AWS Amplify using version with AWSMobileClient.

The IOS app successfully initializes the subscription and it works for about 20 minutes.

After the ios App remains idle for over 20 minutes, the subscription does not get to the following block of code to load the table view cell.

// Update Cache Data
try transaction?.write(object: chatData, withKey: matchUser.matchData.chatRoomId!)

self.loadMessages(policy: .returnCacheDataElseFetch)

So loadMessages function never gets called because transaction.write code does not get to the point to get to the next block of code.

It works initially for about 20 minutes, then it stops.

Thanks

@palpatim
Copy link
Contributor

Dupe of #396, tracking there.

@palpatim
Copy link
Contributor

Released on 3.1.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants