Xbox and Surface have been around a long time as product categories. Xbox isn't even the premier device in its segment.
Highly doubt MS will ever be successful on mobile... their last OS was pretty great and they were willing to pay devs to develop, they just couldn't get it going. This is from someone who spent a ton of time developing on PocketPC and Windows Mobile back in the day.
Products are not the reason for their resurgence.
Apple makes a ton in services, but their R&D is heavily focused on product and platform synergy to that ecosystem extremely valuable.
Afaict, Windows Phone mostly failed because of timing. In the same way that XBox mostly succeeded because of timing. (In the sense that timing dominated the huge amount of excellent work that went into both)
Microsoft is a decent physical product company... they've usually just missed on the strategic timing part.
Timing was definitely an issue - first Windows Phone came 3 years after iOS and 2 after Android. AFA the product itself, I think the perception it needed to overcome was more PocketPC/Windows Mobile having an incredibly substandard image in the market after the iOS release which seemed light years ahead, esp. since MS had that market to themselves for so many years.
That said, it got great reviews and they threw $$ at devs to develop for it, just couldn't gain traction. IME it was timing more than anything and by the time it came to market felt more reactionary than truly innovative.
By this I mean that Microsoft had the positioning of an iPhone in a not-so-great version.
Where as Android relied on the "Open source" and free side for manufacturers to adapt to their phones, even if Google's services remained proprietary.
Can we really talk about timing, when it's above all a problem of a product that didn't fit the market?
Apple is the new Sony might be better. I'm trying to figure out who is the upcoming premium tech product company... not thinking of any. I think Tesla wants to be