Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Linking to Twitter from within your WP8 app

DZone's Guide to

Linking to Twitter from within your WP8 app

· Cloud Zone
Free Resource

Download the Essential Cloud Buyer’s Guide to learn important factors to consider before selecting a provider as well as buying criteria to help you make the best decision for your infrastructure needs, brought to you in partnership with Internap.

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:

http://twitter.com/myreallyawesomeapp

"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:

https://mobile.twitter.com/myreallyawesomeapp

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.
#JustSaying

Triviality over. Normal service will resume soon. :)

The Cloud Zone is brought to you in partnership with Internap. Read Bare-Metal Cloud 101 to learn about bare-metal cloud and how it has emerged as a way to complement virtualized services.

Topics:

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.

SEE AN EXAMPLE
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.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}