Zabs
Zabs

Reputation: 14142

Run conditional logic for apple/iOS devices in Cordova

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?

Upvotes: 1

Views: 473

Answers (1)

aorfevre
aorfevre

Reputation: 5064

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())

Upvotes: 1

Related Questions