Skip to content

How to tear down connections when going to background? #3

@ghost

Description

Trying to use this as is but are having a little trouble handling backgrounding on iOS. The problem with iOS is that it can sometimes randomly connect to a different wifi network when coming out of background. Because of this any existing rabbitMQ connections that it had can become invalid or break.

What I'm trying to do is close everything down, close the consumer and connection on background, and then restart it upon resume. I see that this has significant improvements concerning teardown but I'm having trouble with the actual implementation.

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions