I'm using 3.5.1 now and it works fine.
Now ready to upgrade.
Then I tested V0.03, and the result was logout
Whatsapp.webBuilder() // Use the Web api
.lastConnection() // Deserialize the last connection, or create a new one if it doesn't exist
.unregistered(QrHandler.toTerminal()) // Print the QR to the terminal
.addLoggedInListener(api -> System.out.printf("Connected: %s%n", api.store().privacySettings())) // Print a message when connected
.addDisconnectedListener(reason -> System.out.printf("Disconnected: %s%n", reason)) // Print a message when disconnected
.addNewChatMessageListener(message -> System.out.printf("New message: %s%n", message.toJson())) // Print a message when a new chat message arrives
.connect() // Connect to Whatsapp asynchronously
.join(); // Await the result
Version: Cobalt 0.3 Error: Disconnected: LOGGED_OUT
I'm using 3.5.1 now and it works fine. Now ready to upgrade. Then I tested V0.03, and the result was logout