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

feat: a little changes from browser options. #1177

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MyDapitt
Copy link

@MyDapitt MyDapitt commented Dec 27, 2024

Hi, I just added some updates:

  1. A new browser option has been added: Mobile Safari
    After I did some experiments by changing the user agent in my browser, I have found a browser option configuration that I have matched between the browser options and user agents that I have tried, namely Mobile Safari (I don't know much about this browser, hehe). An example of the configuration in the connection section like this:
const sock = makeWASocket({
            version,
            logger: require("pino")({ level: "silent"});,
            printQRInTerminal: true,
            browser: browser.iOS('Mobile Safari'),
            auth: {
                creds: state.creds,
                keys: makeCacheableSignalKeyStore(state.keys, P),
            },
            msgRetryCounterCache,
        });
...
  1. Ubuntu browser options version has been updated to 24.04.1 (following the current LTS version of Ubuntu)
  2. The default WhatsApp Web version on Baileys has been updated to 2.3000.1019080420

I hope the small changes I made can be moved to the main baileys repository. Thank you very much :)

@whiskeysockets-bot
Copy link
Contributor

Thanks for your contribution.

The next step is to wait for review and approval to merge it to main repository

The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it.

To test this PR you can run the following command below:

# NPM
npm install @whiskeysockets/baileys@MyDapitt/Baileyss#master
# YARN v2
yarn add @whiskeysockets/baileys@MyDapitt/Baileyss#master

@MyDapitt MyDapitt changed the title A little changes from browser options. feat: a little changes from browser options. Dec 27, 2024
@rlzyy
Copy link

rlzyy commented Dec 27, 2024

working?

@rlzyy
Copy link

rlzyy commented Dec 27, 2024

I tried Windows safari, huh?

@MyDapitt
Copy link
Author

working?

Yeah, it was working

@AstroX11
Copy link

AstroX11 commented Jan 1, 2025

Does it work with pair code?

@MyDapitt
Copy link
Author

MyDapitt commented Jan 1, 2025

Does it work with pair code?

yes, it works in pair code method while connecting to client.

@AstroX11
Copy link

AstroX11 commented Jan 2, 2025

Does it work with pair code?

yes, it works in pair code method while connecting to client.

Incredible

@alsocoders
Copy link

can i also add name here custom with browser

@MyDapitt
Copy link
Author

MyDapitt commented Jan 28, 2025

can i also add name here custom with browser

Unfortunately, no. Setting the browser options is the same as using WhatsApp Web with a configured browser. In some cases, the custom name entered in the browser options does not work and returns a "Precondition Required" status.

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

Successfully merging this pull request may close these issues.

6 participants