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

How to create a simplest qwebsocket android service in qt? #6

Open
shujaatak opened this issue Apr 27, 2019 · 1 comment
Open

How to create a simplest qwebsocket android service in qt? #6

shujaatak opened this issue Apr 27, 2019 · 1 comment

Comments

@shujaatak
Copy link

Even when I include QT += websockets in server.pro the app crashes as soon as it starts running! I am clueless whether it is possible or not to use qwebsocket in an android service? I have used the proper permissions i.e.:

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
@shujaatak
Copy link
Author

It's enough for me if I succeed to run the following two lines of code in the service:

QWebSocket webSocket;
webSocket.open(QUrl(QStringLiteral("ws://demos.kaazing.com/echo")));

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

No branches or pull requests

1 participant