WrathChaos / StompClientLib

Simple STOMP Client library, Swift 3 and 4, 4.2, 5 compatible
https://www.freakycoder.com
MIT License
154 stars 81 forks source link

App goes in background lock the kepad the socket disconnected #40

Closed abbasqamar closed 5 years ago

abbasqamar commented 5 years ago

Hi,

The socket disconnected when goes in backgroup and then make the keypad lock then unlock and click on app the web socket is in disonncted mode..

help plz urgent

WrathChaos commented 5 years ago

Hi @abbasqamar, Can you provide a reproducible project, please?

abbasqamar commented 5 years ago

Hi @abbasqamar, Can you provide a reproducible project, please? do i need to provide the project?? or i can create a sample project for u .. seems u are busy right now lol

WrathChaos commented 5 years ago

You can create a sample project for me to reproduce the issue :) Then I can understand the issue deeply. I'm glad to help you.

kiran4991 commented 5 years ago

hi @WrathChaos, @abbasqamar did you find any solution for this? I am also facing this issue

WrathChaos commented 5 years ago

@kiran4991 He did not respond it so I guess he solved the problem. @abbasqamar ?

buivanhieu-bstar commented 4 years ago

The same issue, I put my app from foreground to the background state a moment then it will auto disconnect at the background, could you pls helps me resolve for this case? Thanks!

WrathChaos commented 4 years ago

Hello @buivanhieu2105, I believe that StompClientLib cannot keep working on the background. You need to write a DispatchQueue background thread to make it work.

Here is the SO's answer about Background Tasks. https://stackoverflow.com/a/45192928/2247055

buivanhieu-bstar commented 4 years ago

Okie WrathChaos, I will try to fix this issue, thank for your support, best regards.

Vào Th 5, 26 thg 9, 2019 vào lúc 22:18 FreakyCoder < notifications@github.com> đã viết:

Hello @buivanhieu2105 https://github.com/buivanhieu2105, I believe that StompClientLib cannot keep working on the background. You need to write a DispatchQueue background thread to make it work.

Here is the SO's answer about Background Tasks. https://stackoverflow.com/a/45192928/2247055

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WrathChaos/StompClientLib/issues/40?email_source=notifications&email_token=AHTWBZDSP27WDK4YJTEXSF3QLTHFLA5CNFSM4HJ4O7LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7V6OGY#issuecomment-535553819, or mute the thread https://github.com/notifications/unsubscribe-auth/AHTWBZFNQTWNRYX44K4FMZ3QLTHFLANCNFSM4HJ4O7LA .

-- Bùi Văn Hiệu IOS Developer

Mobile: 0983818129 *Email*: buivanhieu2105@gmail.com buivanhieu2105@gmail.com Add: Go Vap Distric, HCM City

WrathChaos commented 4 years ago

@buivanhieu2105 If you find a good solution, please share with us :)