I don't think web2py includes anything specific, but there are general solutions to the problem. For example, see https://www.npmjs.com/package/is-webview (and the "Sources" links at the bottom of the page).
Anthony On Tuesday, May 23, 2017 at 12:02:07 PM UTC-4, Spokes wrote: > > > I've created Android application, which is essentially a web2py website > wrapped in a React Native WebView. > <https://facebook.github.io/react-native/docs/webview.html>I'd like the > website to present slightly different content, depending on whether it's > being accessed from an app or a browser. > > Is there a reliable way, within web2py, to determine whether the website > is being accessed from a WebView? Google Analytics seems to be able to do > this reliably, so I assume that it's technically feasible. > > In the more general case - is there a reliable, built-in web2py method to > determine whether a website is being accessed from an app (regardless of > whether it's on a phone or tablet, and IOS, Android, or Windows), rather > than a browser on a mobile device? Thank you. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.