Skip to content

subscription stuck on .connecting #4081

@ryanx2002

Description

@ryanx2002

Describe the bug

Case ID 175900844100491

Steps To Reproduce

Here are the steps to reproduce
1. you need two devices, one for a streamer and one for a viewer
2. then please make sure you are on dev environment
3. create an account on both devices
4. Manually change isStreamer to true in dynamodb  for the streamer account (this streamer account should be run from a physical device)
5. On the viewer's physical device, open the app onto the feed of video clips. Then background it.
6. On the streamer's physical device, start a livestream by pressing the camera icon on the top right. 
7. Foreground the viewer's device. Some of the purple button donations or the comments won't appear because the subscription will be stuck in .connecting

Sometimes it eventually changes to .connected after 10 minutes or something. But it takes way too long and sometimes it doesn't eventually change to .connected

Expected behavior

it should be .connected in just a short amount of time

Amplify Framework Version

2.51.2

Amplify Categories

API

Dependency manager

Swift PM

Swift version

6.2

CLI version

14.0.1

Xcode version

26.0.1

Relevant log output

the logs will just stay stuck on .connecting and now should .connected for all of the subscriptions in StreamService / CommentService / DareService

Is this a regression?

No

Regression additional context

No response

Platforms

No response

OS Version

any

Device

any

Specific to simulators

bug happens on simulators and physical devices

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssues related to the API categorybugSomething isn't workingpending-community-responseIssue is pending response from the issue requestor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions