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

Mobile not working #13

Closed
JonrGull opened this issue Sep 17, 2022 · 13 comments
Closed

Mobile not working #13

JonrGull opened this issue Sep 17, 2022 · 13 comments
Labels
bug Something isn't working

Comments

@JonrGull
Copy link

It's possible this is entirely due to user error, but when I run the command to spoof mobile, it doesn't count the searches. Desktop seems to work fine.

Is it something I'm doing wrong? Or did Microsoft change something?

@jack-mil
Copy link
Owner

I'm going to look into this. I have noticed a similar issue occasionally when I use it with Edge. I think there might have been some breaking change related to the user agent.

@JonrGull
Copy link
Author

I'm not great at Python, but I will take a look around as well. I do believe they changed something within the past two weeks or so. Sorry that isn't very helpful.

Unsure if you have upgraded to Windows 11 yet, but I just wanted to let you know that it still works, albeit I can't quite figure out the PATH part.

So I just do a direct path to my Edge browser and it works wonderfully outside of the mobile points.

@jack-mil
Copy link
Owner

Interesting, so I tried using Brave instead of Edge (Both chromium browsers with the --user-agent switch) and it seems to load the mobile versions of Bing's website. I think this might be a change in the Edge Browser that doesn't load the user agent from the command line switch.
It is working with the latest version of Brave, 1.43.93 (Chromium 105.0.5195.127)

@JonrGull
Copy link
Author

I see! Yes when I ran this command on Brave the switch works and it counts mobile searches. So you're right, it's possible it's a browser issue.

It seems Brave is the only one that works for now then.

@JonrGull
Copy link
Author

I tried changing the user agent string in the config file in APPDATA, using the device emulation tool, and this site to generate the string.

I kind of have a feeling that my settings are not being taken into account, but it's possible the fix would be more complicated than that.

@spupuz
Copy link

spupuz commented Mar 2, 2023

does this also does the quizzes?

@rahul-s-bhatt
Copy link

@jack-mil @JonrGull I m not able get mobile points with brave/edge, is there a fix for this in 2023?

@jack-mil
Copy link
Owner

@jack-mil I m not able get mobile points with brave/edge, is there a fix for this in 2023?

One thing I have noticed is that all browser processes have to be shut down when launching with the --user-agent flag in order for it to take effect. Example, I can't have a Brave PWA open in another window while loading a instance with mobile user agents. I assume Edge (Chromium) acts similarly.

I can do some testing with Edge specifically. sometimes it is hit or miss

@rahul-s-bhatt
Copy link

@jack-mil closing all the edge processes did the trick!
Thanks.

@N190392
Copy link

N190392 commented Apr 27, 2023

For me it still does not work on either Chrome or Brave (Edge seems to ignore completely mobile user agent). Tried to change user agents, still no luck
I even ran:

taskkill /f /im "chrome.exe"
taskkill /f /im "brave.exe"

before the script. Browser opens, does searches in mobile view, but I still see 0/60 mobile searches.
Maybe agents need to be updated? This is my config:

{
    "desktop-count": 34,
    "mobile-count": 40,
    "load-delay": 1.5,
    "search-delay": 2,
    "search-url": "https://www.bing.com/search?q=",
    "desktop-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Edg/83.0.478.37",
    "mobile-agent": "Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Mobile Safari/537.36 Edge/18.19041",
    "browser-path": "C:\\Users\\G\\AppData\\Local\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
}

@jack-mil
Copy link
Owner

@N190392
Can you try this user agent string for mobile in your config?
I did some testing with Chrome 112.0.5615.138 and noticed the issue you are having.
Changing the user agent to list a newer browser version worked for me
Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1

@jack-mil jack-mil reopened this Apr 27, 2023
@N190392
Copy link

N190392 commented Apr 27, 2023

Unfortunately, still no luck with either Chrome or Brave...

@tobfromme
Copy link

tobfromme commented Apr 29, 2023

My mobile is working with Chrome 112.0.5615.165 on Linux. My config.json:

{
    "desktop-count": 100,
    "mobile-count": 100,
    "load-delay": 1.5,
    "search-delay": 2,
    "search-url": "https://www.bing.com/search?q=",
    "desktop-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Edg/83.0.478.37",
    "mobile-agent": "Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Mobile Safari/537.36 Edge/18.19041",
    "browser-path": "/usr/bin/google-chrome-stable"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants