Safari on iOS 15.2 reports it's user agent as Safari 6 on iOS7 (!)

I have a client with an iPhone X, updated to iOS 15.2 that for some reason reports it's Safari user agent as:


Mozilla/5.0 (iPhone; CPU iPhone OS the 7_0 like Mac OS X) AppleWebKit/546.10 (KHTM, like Gecko) Version/6.0 Mobile/7E18WD Safari/8536.25


Aka, Safari version 6.0 on iOS 7 - this is just totally incorrect in all ways possible and is causing multiple issues with almost all websites she tries to use.


The weird thing, is that this users iPhones have exhibited weird Safari errors for multiple generations of hardware - and I'm only now realizing, that this incorrect user agent reporting, is to blame.


One example is googles main search page that default to an older layout due to the ancient user agent reported and the same issues appeared on her iPhone 7 before she upgraded to the iPhoneX. This issue in other words seems to have permeated through the "upgrade to new iOS-device"-helper.


When hooking up the phone to a Mac and changing the user agent manually to a current version of safari via safaris developer menu, all works fine, and as soon as the phone is unplugged or the user agent is reset to the "default" setting, it falls back to reporting itself as Safari 6.


The question is then, how do I go about fixing this? The issue seems to permeate through the "transfer to new iOS-device" process, so a full reset and restore might not do a whole lot. And completely resetting her device, forcing the user to manually install every app again isn't a very comfortable solution.


Is there some file in the ~/Library that could have become write protected and that keeps surviving upgrades and backup transfers? Could I somehow access this deep into the file system using for example Xcode? This is quite the mystery.


A similar issue was reported for Safari on Mac OS here:

https://discussions.apple.com/thread/252370710


Help me out here! :)

Posted on Dec 27, 2021 3:52 PM

Reply
1 reply

Dec 28, 2021 11:59 AM in response to voltagecontrol

Hello voltagecontrol,


Thanks for participating in Apple Support Communities. We understand that you're seeing an incorrect version of Safari on newer software. Since Safari isn't an app that can be deleted, you'll need to reinstall the iOS software to repair Safari. To avoid data loss, you could try to put the iPhone in recovery mode and choose "Update" to reinstall the software. Those steps can be found under "Put your device in recovery mode and set it up again" here: If you can't update or restore your iPhone or iPod touch


While those steps keep their data in place, we do still recommend backing up the iPhone first. This way you're sure all data is safe and sound: How to back up your iPhone, iPad, and iPod touch


Let us know how it goes.


Take care.

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 15.2 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.