Make an app go online immediately after configuring a connection (#14117)

Change-Id: I59eb492b1306c3212031f20909524f5518dbd902