Palm launched the Pre and WebOS on June 6 to challenge Apple 's growing smartphone market share in the US fuelled by the success of the iPhone and help restore Palm 's profitability after two years of losses .