Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Socket gets disconnected immediately when app goes to background in android.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24083

    Taher

    Hello,

    I am creating multiplayer game and after creating room if app goes in background in android [Not checked in iOS yet] the socket gets disconnected immediately.

    Please let me know if there is any solution provided by felgo, or we need to handle it in native by keeping the activity alive.

    #24086

    Filippo
    Felgo Team

    Hi Taher,

     

    mobile platforms are generally very conservative when it comes to executing tasks in the background. The best solution is making your architecture resilient to that as much as possible. Have you tried playing with Services in Qt/Android? https://doc.qt.io/qt-5/android-services.html

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded