Business accounts: explicitly emitted SMB_ANDROID enables companion registration where ANDROID is rejected
Linking a companion to a WhatsApp Business account: SMB_ANDROID works where ANDROID is rejected
Following up on #2393, which was closed without merging. Its notes report that SMB_ANDROID breaks
pair registration, because of the mismatch between the Web handshake (WA\x06\x03) and an Android
UserAgent. On a real WhatsApp Business account I get the opposite result: SMB_ANDROID registers
fine — but only when two other fields are set alongside it, which I suspect is the difference.
What was tested
Baileys 7.0.0-rc14, one WhatsApp Business account (primary is WhatsApp Business on iPhone, the
pair-success node reports <platform name="smbi">), QR pairing, 2026-08-26. Every row below was run
against that same account, changing one field at a time and leaving everything else identical.
ClientPayload.UserAgent.platform |
Pairing | Incoming view-once |
|---|---|---|
ANDROID (0) |
rejected — the phone shows "You can only link to another WhatsApp Business app", pairing never starts | n/a |
MACOS (24) |
OK | empty envelopes, no media |
SMB_ANDROID (10) |
OK | delivered with content |
ANDROID is rejected even with the two extra fields below already in place, so it is not the
combination that rescues the flow — the enum value itself is what gets checked.
The three parts, which only work together
ClientPayload.UserAgent.platform=SMB_ANDROID(10)ClientPayload.webInfopresent —getClientPayload()currently omits it wheneverbrowser[1]is'Android', and omitting it is one of the ways the Business registration failscompanion_platform_id=CHROME(1) in the QR / pair-code payload —ANDROID_PHONE(16) makes the server time out after ~30s with no reference returned, which matches what #2393 reported
DeviceProps.platformType stays ANDROID_PHONE in all three rows above, and the phone shows
"Android Phone" under Linked devices in every case — so it is not the field that decides any of this.
Two things that turned out not to be the cause
- The login payload. After registering as
MACOS, I declaredANDROIDon every subsequent login (generateLoginNode). The server accepts those logins, but view-once stayed empty — even though the login payload was by then identical to a
Source: WhiskeySockets/Baileys