Run conditional logic for apple/iOS devices in Cordova

484 Views Asked by At

I am using Cordova 5 for a mobile app - I have a template that needs some text only showing if the app is run on a iOS device

What is the best way to do this with a frame?

1

There are 1 best solutions below

1
On BEST ANSWER

see the cordova plugin cordova-plugin-device or it's adaptation on ngCordova : http://ngcordova.com/docs/plugins/device/

You can is with ngCordova device installed the following function

 if (ionic.Platform.isIOS())