You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iPadOS' Safari 13 is not being detected anymore #404
@fnando do you have any quick ideas about a hacky solution to the problem? From what I have found so far, it will be difficult to parse any info that makes sense, cause it's missing from iPad Safari's user agent.
The user agent looks the same as the desktop user agent...
I was thinking about using JS with template tag, to render the contents conditionally based on touch support + screen size, will try to make it work today.
I finally got the time to handle this issue: the problem is that Safari's user agent doesn't add device identifiers anymore, which means one cannot further detect whether the device is an iPad or not.
Sent previous message a little bit too early… 🤦♂️
The user agent from my iPad running Safari on ipadOS 13 is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15.
The user agent we have on file for testing Safari 6 on iPad looks like this: Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25.
As you can see above, we don't have the iPad token anymore. There isn't much we can do at this point, so I'm closing this issue. If you find an alternative solution, please feel free to let us know.
Anyone able to find some sort of solution to this problem. @fnando I agree with @maguri this issue should not be closed as it's not resolved. You are reducing changes, for this issue to get fixed by the rails community by closing it.
@zohaib-sarwar-confiz As @mkbctrl mentioned, there's no fix for this other than manually changing your iPad's user agent or waiting for Apple to revert this change, as suggested by @maguri.
I'll left this issue open to give it more visibility. But once again, this cannot be fixed in any way by this gem.
Just found out Github's pinned tickets. I'm using that!
Activity
fnando commentedon Oct 17, 2019
Can you paste the actual report url instead of a screenshot? Thanks!
mkbctrl commentedon Oct 17, 2019
Sure, here you go:
http://user-agent.herokuapp.com/?ua=Mozilla%2F5.0+%28Macintosh%3B+Intel+Mac…ML%2C+like+Gecko%29+Version%2F13.0+Safari%2F605.1.15&accept_language=en-ie
mkbctrl commentedon Oct 17, 2019
I have updated the gem to the 2.6.1 version. Still no luck. I have also tried silly if statement:
and suprisingly it does not work on safari 13 as well. Looking for other options...
mkbctrl commentedon Oct 18, 2019
@fnando do you have any quick ideas about a hacky solution to the problem? From what I have found so far, it will be difficult to parse any info that makes sense, cause it's missing from iPad Safari's user agent.
The user agent looks the same as the desktop user agent...
I was thinking about using JS with template tag, to render the contents conditionally based on touch support + screen size, will try to make it work today.
jdittmar commentedon Nov 6, 2019
any updates on this @fnando ?
fnando commentedon Nov 16, 2019
I finally got the time to handle this issue: the problem is that Safari's user agent doesn't add device identifiers anymore, which means one cannot further detect whether the device is an iPad or not.
fnando commentedon Nov 16, 2019
Sent previous message a little bit too early… 🤦♂️
The user agent from my iPad running Safari on ipadOS 13 is
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15.The user agent we have on file for testing Safari 6 on iPad looks like this:
Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25.As you can see above, we don't have the
iPadtoken anymore. There isn't much we can do at this point, so I'm closing this issue. If you find an alternative solution, please feel free to let us know.maguri commentedon Dec 4, 2019
🤷♂️ The only "[SOLUTION]" you can do as far as I know now, is to change your Safari Settings manually to set the
userAgentas an iPad Request:🙏 Just praying to Apple dev team to change it!
@fnando I think this issue shouldn't be closed, add some label if you want, but in my opinion should be Open
zohaib-sarwar-confiz commentedon Jan 10, 2020
Anyone able to find some sort of solution to this problem. @fnando I agree with @maguri this issue should not be closed as it's not resolved. You are reducing changes, for this issue to get fixed by the rails community by closing it.
mkbctrl commentedon Jan 10, 2020
From technical perspective @fnando is kind of right. The issue is not directly the gem's issue, as the gem only reads what the browser sends.
In order to overcome that problem you would need to target iPad with it's screen size and dpi in example to make it work as you want.
fnando commentedon Jan 10, 2020
@zohaib-sarwar-confiz As @mkbctrl mentioned, there's no fix for this other than manually changing your iPad's user agent or waiting for Apple to revert this change, as suggested by @maguri.
I'll left this issue open to give it more visibility. But once again, this cannot be fixed in any way by this gem.Just found out Github's pinned tickets. I'm using that!
[-]Support for Safari 13[/-][+]iPadOS' Safari 13 is not being detected anymore[/+]