Added  check for IOS devices.