iphone - Custom user-agent string to get a better looking Facebook login -


I currently have an app that uses webview to show my website. Permission to access a certain page and no other device has permission to access it.

I am restricting it with user agent which is given by Titanium SDK to me: Titanium "Excelseller Titanium / 3.5.0 (iPhone Simulator / 8.1; iPhone OS; N_US;)" / P>

Unfortunately, it gives me a Facebook login when I login with Facebook on my website via Webview.

Facebook login looks ok, although I use the original user agent from the webview (originally the user is not being set up agent manually and just leaving it) but unfortunately, it's default The webview user agent is similar to any other mobile browser user agent, so I can not tell them differently from the app or mobile browser so that they can be right on my website. Can be redirected to locations.

And unfortunately on iOS, there is a bug in Titanium, where you do not get the default user agent ( webView.getUserAgent () or webView.userAgent refunded undefined on iOS) Can.

So I was wondering what I should do for my custom user agent string:

"Epicolarator Titanium / 3.5.0 (iPhone Simulator / 8.1; iPhone OS ; N_US;) "

To make this, Facebook login looks clean and smooth because the above user agent, while it redirects my users to the right place, Bad looking Facebook login gives me this str What will add Ng?

This is the default webview user agent string that gives me a good looking Facebook login page:

"Mozilla / 5.0 (iPhone; CPUs iPhone OS 10 9 5 like Mac OS X) Apple WebKat / 600.1.4 (KHML, GECO) Mobile / 12B 411 "

I was just working by adding the user agent, which I had received a titanium SDK from my access logs:

"Mozilla / 5.0 (iPhone: CPU OS OS 10_9_5 like Mac OS X) Apple WebKat / 600.1.4 (KHML, / Html>

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -