<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Launching Your Own Application via a Custom URL Scheme</title>
	<atom:link href="http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html</link>
	<description>Tips and Tricks for iPhone developers</description>
	<lastBuildDate>Thu, 11 Mar 2010 14:01:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jack Hodges</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-9395</link>
		<dc:creator>Jack Hodges</dc:creator>
		<pubDate>Sat, 06 Feb 2010 00:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-9395</guid>
		<description>I have 2 apps, myapp1 and myapp2. I have configured a tab in myapp1 to launch myapp2. I have created custom url schemes for each app, so that one could call the other and vice versa. I have tested launching myapp2:// from myapp1 (with http://) and that works. When I use myapp2:// it does not. Both apps are installed on the device using ADHOC profiles.

Question: Does this only work if at least one of the apps (e.g., myapp2) is installed via the app store? I cannot understand how one custom app would be able to know about another custom app. It doesn&#039;t seem like creating a custom url scheme goes the distance.

Has anyone tried custom app to custom app use of the custom url schemes approach? Thanks,

Jack</description>
		<content:encoded><![CDATA[<p>I have 2 apps, myapp1 and myapp2. I have configured a tab in myapp1 to launch myapp2. I have created custom url schemes for each app, so that one could call the other and vice versa. I have tested launching myapp2:// from myapp1 (with <a href="http://)" rel="nofollow">http://)</a> and that works. When I use myapp2:// it does not. Both apps are installed on the device using ADHOC profiles.</p>
<p>Question: Does this only work if at least one of the apps (e.g., myapp2) is installed via the app store? I cannot understand how one custom app would be able to know about another custom app. It doesn&#8217;t seem like creating a custom url scheme goes the distance.</p>
<p>Has anyone tried custom app to custom app use of the custom url schemes approach? Thanks,</p>
<p>Jack</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mithun</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-9185</link>
		<dc:creator>Mithun</dc:creator>
		<pubDate>Sat, 30 Jan 2010 06:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-9185</guid>
		<description>This works in a surprising way for me. I can launch the application through safari, but none of the deleagate gets called, no action methods gets called, but the app does launch. Wat can be the problem???</description>
		<content:encoded><![CDATA[<p>This works in a surprising way for me. I can launch the application through safari, but none of the deleagate gets called, no action methods gets called, but the app does launch. Wat can be the problem???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Berthiaume</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-8759</link>
		<dc:creator>Jeffrey Berthiaume</dc:creator>
		<pubDate>Sun, 17 Jan 2010 07:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-8759</guid>
		<description>@Lawson Culver - this one had me bugged too.  Instead of doing it through code ( [[UIApplication sharedApplication] setStatusBarHidden: YES]; ) you will need to add the &quot;Status bar is initially hidden&quot; line to your Info.plist and check the box.  Once I did that, it worked for me!</description>
		<content:encoded><![CDATA[<p>@Lawson Culver &#8211; this one had me bugged too.  Instead of doing it through code ( [[UIApplication sharedApplication] setStatusBarHidden: YES]; ) you will need to add the &#8220;Status bar is initially hidden&#8221; line to your Info.plist and check the box.  Once I did that, it worked for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyung Ahn</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-8641</link>
		<dc:creator>Kyung Ahn</dc:creator>
		<pubDate>Wed, 13 Jan 2010 00:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-8641</guid>
		<description>What happens if the iPhone or iPod touch doesn&#039;t have the app installed?</description>
		<content:encoded><![CDATA[<p>What happens if the iPhone or iPod touch doesn&#8217;t have the app installed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lawson Culver</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-8094</link>
		<dc:creator>Lawson Culver</dc:creator>
		<pubDate>Thu, 24 Dec 2009 18:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-8094</guid>
		<description>I&#039;ve written an app that hides the status bar at the top of the phone (the one with the carrier, etc.)  When I open it using this method, the bar shows up.  How can I keep it hidden?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve written an app that hides the status bar at the top of the phone (the one with the carrier, etc.)  When I open it using this method, the bar shows up.  How can I keep it hidden?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-7452</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 02 Dec 2009 15:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-7452</guid>
		<description>@brandon - right on! Thanks for walking through that. Very much appreciated.</description>
		<content:encoded><![CDATA[<p>@brandon &#8211; right on! Thanks for walking through that. Very much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-7437</link>
		<dc:creator>brandon</dc:creator>
		<pubDate>Wed, 02 Dec 2009 08:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-7437</guid>
		<description>Regarding Joe&#039;s question...

Create a class that implements the IWebViewDelegate protocol and implement the shouldStartLoadWithRequest method. When your webview needs to load a page (via a clicked link, an ajax request, some sort of javascript event, whatever...) it will call this method on your delegate and pass in an NSUrlRequest object.

if [[request url] scheme] is your app&#039;s custom scheme, go ahead and do whatever it is the url indicates you should do, and return NO to prevent the webview from continuing to process the request. If the scheme isn&#039;t something you want to catch, return YES to let the webview handle the request in the usual manner.

PhoneGap does this (see /iphone/PhoneGapLib/Classes/PhoneGapDelegate.m) in a very elegant way, providing a way for their javascript framework to call methods written in obj-c. They use the stringByEvaluatingJavaScriptFromString method of the webview to pass information back into the browser from obj-c, which is also pretty slick.</description>
		<content:encoded><![CDATA[<p>Regarding Joe&#8217;s question&#8230;</p>
<p>Create a class that implements the IWebViewDelegate protocol and implement the shouldStartLoadWithRequest method. When your webview needs to load a page (via a clicked link, an ajax request, some sort of javascript event, whatever&#8230;) it will call this method on your delegate and pass in an NSUrlRequest object.</p>
<p>if [[request url] scheme] is your app&#8217;s custom scheme, go ahead and do whatever it is the url indicates you should do, and return NO to prevent the webview from continuing to process the request. If the scheme isn&#8217;t something you want to catch, return YES to let the webview handle the request in the usual manner.</p>
<p>PhoneGap does this (see /iphone/PhoneGapLib/Classes/PhoneGapDelegate.m) in a very elegant way, providing a way for their javascript framework to call methods written in obj-c. They use the stringByEvaluatingJavaScriptFromString method of the webview to pass information back into the browser from obj-c, which is also pretty slick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-5338</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 29 Sep 2009 14:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-5338</guid>
		<description>@Aaron: Greetings! If application:handleOpenURL: is _not_ invoked, the next best thing might be to check the delegate method webView:shouldStartLoadWithRequest:navigationType: … though I&#039;m hopeful it&#039;s still possible the other way. :)</description>
		<content:encoded><![CDATA[<p>@Aaron: Greetings! If application:handleOpenURL: is _not_ invoked, the next best thing might be to check the delegate method webView:shouldStartLoadWithRequest:navigationType: … though I&#8217;m hopeful it&#8217;s still possible the other way. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Hill</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-5326</link>
		<dc:creator>Aaron Hill</dc:creator>
		<pubDate>Tue, 29 Sep 2009 06:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-5326</guid>
		<description>Anyone figure out the answer to @Joe&#039;s question above? Can you use these from within an app to message that same app without relaunching it?</description>
		<content:encoded><![CDATA[<p>Anyone figure out the answer to @Joe&#8217;s question above? Can you use these from within an app to message that same app without relaunching it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jissa</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html/comment-page-1#comment-5195</link>
		<dc:creator>jissa</dc:creator>
		<pubDate>Thu, 24 Sep 2009 08:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=1251#comment-5195</guid>
		<description>Q: can i use this tutorial to do a call from my app. without [[uiapplication sharedApplication]openURL:@&quot;tel:1000000001&quot;]?</description>
		<content:encoded><![CDATA[<p>Q: can i use this tutorial to do a call from my app. without [[uiapplication sharedApplication]openURL:@&#8221;tel:1000000001&#8243;]?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
