1

My app have some intro pages I want the user see before android shows the banner "Add to home screen", is it possible? or another solution maybe hide it for a while...

Thank you very much, any help very appreciated.

pizzaisdavid
  • 381
  • 2
  • 12
Daniel
  • 671
  • 1
  • 8
  • 16

1 Answers1

0

The browser has a global var named navigator.userAgent. It contains a string that you can do an indexOf against to see if the app is running on android, like so:

//'True' if "Android" is in the user agent
if (navigator.userAgent.indexOf('Android') != -1)
    console.log('running on android')

Detecting iOS / Android Operating system

Thomas Skubicki
  • 378
  • 2
  • 8