<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Indie iPhone Development Blog &#187; mobile web</title>
	<atom:link href="http://blog.indieiphonedev.com/tag/mobile-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.indieiphonedev.com</link>
	<description>The musings of an independent iPhone developer</description>
	<lastBuildDate>Mon, 20 Jun 2011 18:48:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Twittering from mobile website</title>
		<link>http://blog.indieiphonedev.com/2010/01/27/twittering-from-mobile-website/</link>
		<comments>http://blog.indieiphonedev.com/2010/01/27/twittering-from-mobile-website/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 03:19:23 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[iPhone app]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[mobile web]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://blog.indieiphonedev.com/?p=96</guid>
		<description><![CDATA[LogYourRun allows users to share their activities using both Twitter and Facebook.  On the website site this is easily taken care of by Facebook Connect as well as a direct link to Twitter.  However, on the iPhone, most people will not be using the twitter website as their main twitter client &#8211; usually they will [...]]]></description>
			<content:encoded><![CDATA[<p>LogYourRun allows users to share their activities using both Twitter and Facebook.  On the website site this is easily taken care of by Facebook Connect as well as a direct link to Twitter.  However, on the iPhone, most people will not be using the twitter website as their main twitter client &#8211; usually they will have one of the <a href="http://www.atebits.com/tweetie-iphone/">numerous</a> <a href="http://iconfactory.com/software/twitterrific">twitter</a> <a href="http://echofon.com/twitter/iphone/">iPhone</a> <a href="http://www.stone.com/Twittelator/">applications</a> installed.  Since a bunch of these actually respond to custom URL schemes the tweet can be sent directly to the Twitter app using some <a title="Tweet from mobile website" href="http://www.markj.net/iphone-tweet-from-ad/" target="_blank">clever JavaScript as posted by Mark J</a>.</p>
<p>Before adding the JavaScript code and the link to the page I check in PHP if the <a href="http://iphonemicrosites.com/tutorials/php-auto-bowser-detection/">user is using an iPhone</a>.  If they are, a link will appear that will attempt to launch one of 5 different twitter apps.  Using this approach will quit the LogYourRun application or the mobile safari session and open the application.  Before doing so &#8211; mobile Safari will pop up a warning saying that it does not respond to the URL (because I do not have Tweetie on my iPod Touch and this is the first app that is being launched).</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.indieiphonedev.com%2F2010%2F01%2F27%2Ftwittering-from-mobile-website%2F&amp;title=Twittering%20from%20mobile%20website" id="wpa2a_2"><img src="http://blog.indieiphonedev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.indieiphonedev.com/2010/01/27/twittering-from-mobile-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

