0

i have question about Menu Showing on website.

So here is my question: I maded Android app that pulls website from internet, WebView. So on website there are few caategories when click on some of them the application is going to new Online Web Site (Joomla Web Site in WebView).

So is there any chance when someone is coming from Classic Browser (No android app) to show Nav Bar, But when coming from Android App in WebView to hide Nav Bar.

Thanks

uncklegwebdev
  • 62
  • 2
  • 9
  • You could pass a parameter in the URL, like `http://example.com/?navBar=off`, and [take care of that in JS](http://stackoverflow.com/questions/5448545/how-to-retrieve-get-parameters-from-javascript). – blex Mar 04 '15 at 14:31

1 Answers1

0

use JavaScript navigator.userAgent to identify the client.

or use this http://detectmobilebrowsers.com/

Dorin
  • 524
  • 3
  • 12
  • What if I'm accessing the site in a regular mobile browser? I assume the navbar should be show in this case. – blex Mar 04 '15 at 14:34
  • there are few options. to modify (spoof) userAgent or add extra header info to identify the app – Dorin Mar 04 '15 at 14:44
  • Yes navbar should be shown in that case. But in case when somebody use AndroidApp and go to same website the navbar should'nt be shown. – uncklegwebdev Mar 04 '15 at 15:25