Display a button based on the OS

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

Platform.is.

1 Like

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

Another way to accomplish this is to use ShowWhen.