Safari on iOS 17.6.1 reports it's user agent as Safari 6 on iOS7

Safari reports its user agent as "Safari 6, iOS 7" on my iPhone 13 mini with iOS 17.6.1.


I already tried to update and reinstall the software in the recovery mode as described here: Safari on iOS 15.2 reports it's user agen… - Apple Community


Any ideas on how to fix that problem?


If possible, I would like to avoid completely resetting the phone because then I would have to install every app and recover all data manually. The problem seems to stick to backups and transfers from older to newer devices...


Thanks!

iPhone 13 mini, iOS 17

Posted on Sep 4, 2024 11:08 AM

Reply

Similar questions

11 replies

Sep 8, 2024 3:35 AM in response to Gene5is

Resetting only the network settings did not help, as John Galt already expected.


Therefore, I decided to reset the iPhone completely and do a clean install. This fixed the problem. Thank you, @Mac Jim ID, for your help. I appreciate your effort!


One clarifying comment @John Galt: I think you misunderstood my problem. The phone reported an incorrect UserAgent, causing various issues, especially with some apps that rely on Safari as an in-app browser. I *need* these apps but could *not use* them any longer because the login was blocked to an allegedly outdated version of Safari (which was incorrect as I had the newest iOS installed). Thus, my problem was not caused by the "browser sniff" or apps but by my phone reporting a wrong User Agent for whatever reason.


After resetting the phone, I checked the User Agent on different sites. All sites now report the correct version. Thus, it was definitely a problem related to my phone.

Sep 4, 2024 3:36 PM in response to Gene5is

I have reviewed the few reports that I have been able to find, but did not come up with a clear solution. I also understand you do not want to do a clean install and don't blame you if that can be avoided. I would try these steps:

  • Force Close Safari by slowly sliding up from the bottom of the screen to about the half way point to bring up the App Switcher. Find Safari by swiping left if it is not the top most app and swipe up on it to close.
  • Go to Settings > Safari > Clear History and Data, and confirm.
  • Force Restart your iPhone - This may take a couple of attempts to get the speed and sequence correct and the last step of holding the side button until the Apple Logo appears could take up to 15 seconds. Ignore anything else you see on the screen during that time until the Apple Logo appears. If you do not see the Apple Logo start over and try again.

Force restart iPhone - Apple Support

  • Check the browser again using this site instead to see if the results are different.

https://www.useotools.com/what-is-my-browser

Sep 5, 2024 10:14 AM in response to Gene5is

Gene5is wrote:

Many websites cannot be used correctly with Safari, and I am getting prompts that this version of Safari is no longer supported.


The reason is that those sites are still using an outdated and privacy-intrusive "user agent check" to determine browser compatibility.


Refer to this excerpt from Apple's Safari Developer Documentation (emphasis added):


Important

Use feature detection to enable or disable functionality instead of relying on the name or version of the browser in the User Agent string. Learn how to detect available features on MDN…


The passage regarding feature detection in that document uses even stronger language:


"... this is a terrible practice that should be discouraged at all costs."


It goes on to describe how that feature is "ultimately pointless," and the pointlessness is manifesting in your frustration.


As far as that is concerned, all my iPhones are reporting the correct "user agent" if I use the first website you cited (whatismybrowser). On the other hand the second website you cited (useotools) reports results similar to yours. Both Brave and Firefox are reporting it as Safari, which is of course wrong. Same iPhone, etc. Yet you are reporting different results.


If for no other reason this example illustrates the futility of using the "browser sniff" code that's causing you trouble.


What to do about it... you already ruled out Safari Extensions and VPNs, and I don't use any either. Yet x.com works fine. Will resetting your iPhone fix things? I doubt it. Before you do that try resetting its network settings: If your iPhone or iPad won't connect to a Wi-Fi network - Apple Support. Step 7. If that doesn't help (and I doubt it will) then proceed as described under Get more help. Let us know what you find out.

Sep 5, 2024 8:51 AM in response to Gene5is

Sorry I don't have an explanation or solution for the wrong user agent being reported. It does look like you are going to need a Factory Reset. Hopefully you are using iCloud Photos where those will be redownloaded to your device even if you are unable to restore from a backup. In most cases, your Contacts are also in iCloud so it should not affect those either. It is true that third party apps will need to be downloaded and any data that those apps stored on your device would be lost.


Please follow up if you are able to discover any additional details that could have been the source to the problem.

Sep 4, 2024 11:47 AM in response to Mac Jim ID

Many websites cannot be used correctly with Safari, and I am getting prompts that this version of Safari is no longer supported. I am also experiencing problems with app logins that rely on Safari as the in-app browser (probably since Cloudfare is not supported by older Safari versions).


I know that the Safari version is tied to iOS. However, for some reason, Safari reports the wrong version to websites. I tried different websites to check the user agent, always yielding the same result (example see screenshot).




Sep 5, 2024 1:18 AM in response to Mac Jim ID

Thank you for digging deeper and suggesting these steps. I tried them directly. Unfortunately, the problem persists. I guess a clean install might be the only solution?


When using Firefox, the iOS and Firefox versions are reported correctly:

Interestingly, it still reports that I would use Safari here (which I did not, it was Firefox). However, it gets the version of Firefox (130.0) and iOS (17.6.1) right.

Sep 5, 2024 10:58 AM in response to John Galt

Thanks for jumping in. As you, I was unable to confirm the results the OP had using Safari on 2 phones with different iOS versions and was unable to explain why that would be happening. I agree that sniffing the user agent is not reliable, but the site the OP used correctly identified Safari and iOS version on both of my devices, so could not determine what may be different for the OP.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari on iOS 17.6.1 reports it's user agent as Safari 6 on iOS7

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.