awslabs / aws-mobile-appsync-sdk-ios

iOS SDK for AWS AppSync.
https://awslabs.github.io/aws-mobile-appsync-sdk-ios/
Other
262 stars 130 forks source link

Unknow TCP connection process keep running even when all subscriptions are unsubscribed #574

Closed MasonTyTran closed 11 months ago

MasonTyTran commented 1 year ago

Describe the bug Unknow TCP connection process keep running and sending/receive package even when all subscriptions is unsubscribed

To Reproduce Steps to reproduce the behavior:

  1. Create a subscription
  2. When app moves to background, unsubscribe Subscription watcher

Expected behavior No TCP connection is alive

Screenshots Subscribe then unsubscribe -> 2 duplicated tcp connections and both of them periodically send/receive package image

Never subscribe - There is one tcp connections and do not send/receive package periodically image

Those IPs are belong to aws

image

Environment(please complete the following information):

Device Information (please complete the following information):

Additional context I implement location updating in background and want to stop all appsync socket during background time to reduce energy usage but if I subscribe even 1 time to awsappsync then unsubscribe all, I still see some aws tcp connection is being active and receiving/sending data periodically

atierian commented 11 months ago

Thank you for opening this issue. AWS AppSync SDK for iOS entered maintenance mode in September 2023 and will receive no further updates as of September 2024.

Please use Amplify Swift going forward. For information on upgrading to Amplify Swift, refer to the Upgrade from AppSync SDK documentation.