-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Distinguishing mobile app vs mobile web #179
Comments
The user agent from an app webview doesn't include the `Safari/:version` part. We can possibly detect if request is coming from an app's webview if it doesn't include this string.
The user agent from an app webview doesn't include the `Safari/:version` part. We can possibly detect if request is coming from an app's webview if it doesn't include this string.
The user agent from an app webview doesn't include the `Safari/:version` part. We can possibly detect if request is coming from an app's webview if it doesn't include this string.
The user agent from an app webview doesn't include the `Safari/:version` part. We can possibly detect if request is coming from an app's webview if it doesn't include this string.
I just tried iOS simulator and the iOS webview doesn't include the |
The user agent from an app webview doesn't include the `Safari/:version` part. We can possibly detect if request is coming from an app's webview if it doesn't include this string.
The user agent from an app webview doesn't include the `Safari/:version` part. We can possibly detect if request is coming from an app's webview if it doesn't include this string.
+1 (thanks for a great gem, and sorry I cannot try it myself) |
Also, what about Android webview? It looks this is well documented: https://developer.chrome.com/multidevice/user-agent#webview_user_agent |
+1, but I don't think that I can understand how this could cause problems for existing apps, but I believe the correct implementation is not to consider a UIWebView as safari, especially considering the UA for the webviews doesn't include the string "Safari." |
The user agent from an app webview doesn't include the `Safari/:version` part. We can possibly detect if request is coming from an app's webview if it doesn't include this string. There's one implication: iOS webviews or Safari Web Apps aren't detected as Safari, because they don't include the `Safari` string.
@samsonasu agree. I changed the detection of webviews and web apps; they aren't detected as Safari anymore. This will require a major versioning bump and warning message, but that's how I think it should be. |
The user agent from an app webview doesn't include the `Safari/:version` part. We can possibly detect if request is coming from an app's webview if it doesn't include this string. There's one implication: iOS webviews or Safari Web Apps aren't detected as Safari, because they don't include the `Safari` string.
The user agent from an app webview doesn't include the `Safari/:version` part. We can possibly detect if request is coming from an app's webview if it doesn't include this string. There's one implication: iOS webviews or Safari Web Apps aren't detected as Safari, because they don't include the `Safari` string.
Hi,
Is there a way to distinguish between a request made from a mobile browser (e.g. Safari in iOS) and one made from a webview within an app?
Thanks
The text was updated successfully, but these errors were encountered: