Added handling for IOS platform