I was working for Ericsson when the first iPhone came out. Smartphones were already on the market, although they were mainly seen as high-end devices mainly for business use and so a niche market.
Ericsson gambled on feature-phones instead, and it really hurt them. I don't think any of the big players at that time were successful in predicting the market appetite for smartphones.