Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
625 stars 183 forks source link

When I tried to reconnect a registered phone number using the registered API, I found that the store displayed a status indicating that it was already connected, but in reality, it was not connected and could not send messages #320

Closed topskymonk closed 1 year ago

Auties00 commented 1 year ago

can you show your code?

topskymonk commented 1 year ago

Whatsapp.mobileBuilder() .newConnection(UUID.fromString(myWhatsapp.getSessionId())) .registered() .get() .connectAndAwait() .join(); }

Auties00 commented 1 year ago

might want to try 3.4.5

topskymonk commented 1 year ago

OK

topskymonk commented 1 year ago

I tried reconnecting, but it still doesn't work. I'm constantly loading. v3.4.8

friend-tom commented 1 year ago

Whatsapp.mobileBuilder() .newConnection(UUID.fromString(myWhatsapp.getSessionId())) .registered() .get() .connectAndAwait() .join(); }

@topskymonk Hello, may I know how the "myWhatsapp.getSessionId()" smile data is persisted in your local environment? Could you provide some complete examples of your use of mobileBuilder? I'm extremely grateful for your assistance, thank you!