test for ios only if running in cordova