Substitute Seferovic's goal in stoppage time changed the outcome of the game sensationally as it was headed for a draw. (Agencies)
Swiss coach Ottmar Hitzfeld made some superb changes and his side benefited immensely, coming back from conceding an early goal.
The two sides were locked 1-1 after 90 minutes but a frenetic move from right to left handed Seferovic an opportunity and slammed home the winner for his side.
With two sides meeting for the first time in an international match, it was expected to be a contest between Switzerland's tight defence and Ecuador's energetic attack but it turned out to be a different story.
Ecudaor's attack had Switzerland gasping initially as they struggled to get hold of the ball in the opening moments and took some time to settle in humid conditions.
The world number six, found themselves down by a goal in the 22nd minute when Ecuador striker Enner Valencia headed from close range on free kick.
Stephane Lichtsteiner did his side no good when he brought down rival skipper Antonio Valencia, the Manchester United winger, as Ecuador earned a free-kick, which led to the first goal of the match. Walter Ayovi sent a well calculated free-kick and Enner Valencia headed from close range to stun the Swiss side.
Rattled, Switzerland intensified attacks and won as many as six corners but none of them could be converted. Valentin Stocker's header went to the wrong side of the post and Valeron Behrami's shot was easily collected by Ecuador keeper Alexander Dominguez.
Winger Stephane Lichtsteiner, midfielder Granit Xharka and Xherdan Shaqiri created a few good moves, but lacked execution.
However, the Europeans woke up and coach Hitzfeld's move to replace midfielder Valentin Stocker with Admir Mehmedi immediately after the break proved a master stroke as the winger won his side equaliser within two minute of stepping on the pitch.
Mehmedi sent in a thunderous header from inside the six-yard box to get equaliser for his side in the 47th minute.
The game lacked fireworks till then but the equalizer brought some fire with both sides now in attacking mode.
Shaqiri fed Mehmedi from the right with a cutback but the Swiss substitute could pick. The action shifted to other half as Enner Valencia unleashed a fiery kick from the edge of the Swiss box but hit over the crossbar.
Swiss almost got the lead in the 70th minute but Josip Drmic's goal was flagged by the linesman.
Seven minutes later, Seferovic was brought in for Josip Drmic up while Ecuador replaced Jefferson Montero with Joao Rojas. In the end, Swiss substitution proved lucky.
Substitute Seferovic's goal in stoppage time changed the outcome of the game sensationally as it was headed for a draw.