Display a button based on the OS


#1

Hi All,

In my Ionic 2 App i want to display a button which opens the platforms app store.

I need to detect if the OS is iOS, Android or Windows and then shows the relevance button for that app store and the relevant link, and push out to the devices browser with that link.

What’s the easiest way of doing this?

Thanks,
Carl


#2

Platform.is.


#3

Thanks, that worked brilliantly, it’s a shame you can’t distinguish between android google and android amazon


#4

Another way to accomplish this is to use ShowWhen.