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

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

Closed
abbasqamar opened this issue May 2, 2019 · 9 comments
Closed

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

abbasqamar opened this issue May 2, 2019 · 9 comments

Comments

@abbasqamar
Copy link

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

@abbasqamar abbasqamar changed the title App goes in background keypad lock the socket disconnected App goes in background lock the kepad the socket disconnected May 2, 2019
@WrathChaos
Copy link
Owner

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

@abbasqamar
Copy link
Author

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
Copy link
Owner

WrathChaos commented May 2, 2019

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
Copy link

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

@WrathChaos
Copy link
Owner

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

@buivanhieu-bstar
Copy link

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
Copy link
Owner

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
Copy link

buivanhieu-bstar commented Sep 26, 2019 via email

@WrathChaos
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants