Over a million developers have joined DZone.

Linking to Twitter from Within Your WP8 App

· Mobile Zone

Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud, brought to you in partnership with IBM.

 <TrivialAndRantyPostFeelFreeToSkip />

Whether it directly relates to the content of an app or just from an about page, lots of apps contain links to Twitter that are opened in the web browser (IE).

Unfortunately, lots of apps do this wrong!

"Wrong? Really? What do you mean?" - I hear you ask.
Well, they don't do it in the quickest, simplest, and cheapest (in terms of network data costs) way.

They'll do it in, what I presume they think to be, the most obvious way. They'll open a Uri like this:


"What's wrong with that?" - I hear you now ask.
Well, just type that (or, preferably, a valid username) in the browser on your phone and see.
Did you do it? Go on. I'll wait. It won't take long.

So, what happened?

That's right, it redirected.
It redirected to:


There are two differences:

  1. It's changed to a different domain. (Notice the "mobile." bit before "twitter.com")
  2. It's now going over a secure (SSL) connection. (Notice the schema is now "https")

Most importantly, that change took time and an extra web request.
This all means that, unless they were on a very quick connection, the person using the app had to wait for this to happen. They were there waiting, staring at the screen while it was busy with unnecessary work. And all for the sake of typing seven characters.
I don't consider apps that force their users to wait unnecessarily to be providing the best experience possible.

Triviality over. Normal service will resume soon. :)

The Mobile Zone is brought to you in partnership with Strongloop and IBM.  Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud.


Published at DZone with permission of Matt Lacey, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}