I am a web developer, and my boss always ask me how to redirect Android mobile phone user to mobile version of the site,
and we both know basically check the user string to see if it contains 'Mobile', but the webview In-app browser in Facebook always return some non-standard user agent string, ex:HTC M7 will not contains 'Mobile', so is hard to determine it's mobile / tablet.
And today I try to check the user agent string again on my phone, the in-app browser is gone, I didn't turn of in app settings, it missing the setting too, also my wife's phone is gone.
Can anyone can let me know is your Facebook app also missing the in-app browser now?
Maybe Facebook removed the feature/
Thanks.
Not sure if I’m on-topic here or not, but here goes... I am responsible for the setup/configuration of WiFi routers in various restaurants and venues. We are simply using the built-in splash page functionality of the router to, upon connection, present a simple marketing message and daily special offer via an extremely simple, static external HTML page, rather than the login page that many venues present (airports, coffee shops, McDonalds, etc.).
After connecting to our SSID with a PC or mobile device, users are presented with a customized splash page where our venue’s latest “offer of the day” banner ad is presented, which links via a standard hyperlink out to a PDF coupon for them to redeem said offer. There are also a couple of other simple items on the page, such as a menu with links to other offers, and an embedded Google Map to the venue in question.
All seems to be OK on PCs and iPad/iPhone devices. However, we are running into a problem on Android devices – specifically, Android devices using newer/more recent versions of the Android OS.
The problem is that Google has made a change to newer versions of Android so that WiFi connection login/splash/confirmation pages no longer come up in the default Web browser of the phone/tablet in question. Instead, they seem to come up in some kind of built-in notification window simply titled “Sign-in to network” – it does not seem to be a full-blown, feature-compliant browser, but rather a panel of sorts built into Android. And when our basic, mainly static HTML page loads within this alert window, none of the standard HTML features (such as hyperlinks) seem to work. A window appears with the title “Sign-in to network”, and our splash page appears on within it, but the standard HTML hyperlink from our special offer graphic (to a PDF file) does not work. Clicking it has no effect. Our menu underneath that does not seem to open (it’s automatically collapsed on mobile devices), and none of the links within it work properly, and our embedded Google Map does not appear at all. It’s as if this alert window or whatever we call it does not support the basic features of HTML pages in any way.
There appears to be no way for me to programmatically force the Android client to “escape” from this proprietary panel and open up a page in their default browser. I’ve tried placing various forms of client and server side “push/redirect” code on the page in an effort to escape from this alert window and cue the default browser to open, with no luck. No matter what I do, it seems that they Android phones always load the splash page within a “sign-in to network” notification page rather than a browser, and that this notification panel is not fully functional for even basic HTML features such as <a> hyperlinks, javascript, or embedded items.
It’s possible that Android’s proprietary “sign-in to network” panel is apparently seeking some sort of acknowledgement of a successful "login" in order to proceed with any subsequent browsing. But if so, I don’t know what constitutes “acknowledgement”. Perhaps there some way to force a hidden form submission or link click programmatically to force the Android device to accept/acknowledge the connection just as if the user had logged in normally, so that we can then proceed to subsequent Web browsing?
Has anyone experienced this problem, or have any ideas as to whether there’s a work-around or coding-based solution to this difficulty?
Thanks very much for your help in advance.
UPDATE: I've been in touch with the Google developers of the sign-in panel... they indicated that "captive portal sign-in pages are displayed in an Android WebView, which uses much of the same code as the Chrome browser. The sign-in app is very simple, you can see all of its source code here.
One second after each navigation (including the initial page load), the app probes to see if the user has successfully signed into the network. This probe is done by fetching a URL that should give back a 204 response."
Based on this, I am making the assumption that until captive portal sign-in app probes to see if the user is successfully signed in, all other navigation and many other features on the page are disabled, and that the full functionality of the WebView panel is restored after a successful sign-in to the network. But if so how can I successfully "signal" to the sign-in app that the user is, in fact, signed in (or rather, that no sign is in necessary or desired)? Is there something programmatically that I can do in the page code to ensure this, so that the viewer can then proceed to normal Web navigation within the panel, and so forth?
Any insight into how this works from anyone here would be greatly appreciated!
Thanks!
Just what the title says. I can't find much documentation about the security of an in-app browser vs. that of Firefox beefed up with html5, noscript, https everywhere, ublock. Assuming javascript and flash are indeed enabled and there is no option to disable them, could there be a solution similar to AdAway that can block these elements below the app level?
delete
delete
I am a kodi addon developer and I believe I have skills more than average when it comes to Python. I am the sole maintainer of the AliveGR addon, the most popular greek addon around the world.
On Android I still suck... I am able to call an android activity from within Kodi with very specific intent, data uri and package name, but how can I call the default app for twitter, facebook or even a web browser?
Example:
Code:
control.execute('StartAndroidActivity("package_name","android.intent.action.VIEW","","url")')
Where package_name could be 'com.google.chrome' and url could be 'facebook.com'
Hello
In Android it is easy to get the application or package name of the current foreground application. Is it also possible to get the context of the foreground application (i.e. for youtube application what video is played and for browsing what webpage is browsed and so on)? It should run on non-rooted phones. Is it perhaps possible with an accessibility service?