1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Sockets not connecting when running on release build

Discussão em 'Angular' iniciado por Cigogma, Outubro 3, 2024 às 11:02.

  1. Cigogma

    Cigogma Guest

    I'm currently trying to publish a cordova app on google play store... However when I run the release build from the store the app does not connect to the sockets.

    I am using LaravelEcho with SocketIo client.

    • cordova - 9.0.0 (cordova-lib@9.0.1)
    • angular - 8.1.2
    • socket.io - 2.1.4
    • laravel-echo - 1.6.1

    After I searched the problem I found some results about a permission, but I already have that.

    <uses-permission android:name="android.permission.INTERNET" />

    Is it possible to debug the app in the release mode?

    This is how I imported the NgxLaravelEchoModule

    NgxLaravelEchoModule.forRoot({
    userModel: 'App.Models.User',
    notificationNamespace: 'App\\Notifications',
    options: {
    broadcaster: 'socket.io',
    host: environment.socketsURL
    }
    }),


    I managed to pint an error message thrown by socket module

    xhr poll error

    Continue reading...

Compartilhe esta Página