signalapp / Signal-iOS

A private messenger for iOS.
https://signal.org
GNU Affero General Public License v3.0
10.77k stars 3.02k forks source link

[#5846] Remove custom user agent to fix captcha failure loop #5865

Open g1a55er opened 3 weeks ago

g1a55er commented 3 weeks ago

Contributor checklist

Description

I was also hit by the bug filed as #5846, where I get stuck in an infinite "Something went wrong" captcha failure loop on registration with notifications unavailable.

After some debugging, comparing iOS and Android, it turns out this traces back to hCaptcha not liking the custom user agent of the WebView used for the CAPTCHA view

Once I removed the custom user agent so that the WebView goes back to the default user agent, I am able to successfully get out of the failure loop.

luoye1101 commented 3 weeks ago

I deleted the custom user agent in your way, but the problem still exists