pacificcros.blogg.se

App thoughtback
App thoughtback













app thoughtback

What you’ll need to do is tell the application to respond to an Apple Event. This is slightly different on the mac, URL handling is not part of the NSApplicationDelegate protocol. I should mention that the first method is deprecated, but the second one is only available on iOS 4.2 or later. SourceApplication:(NSString*)sourceApplication (BOOL)application:(UIApplication *)application Go into your applicationdelegate and override either of these two methods. Just launching from a URL is fine, but how do you get any information out of the URL that was clicked? That’s where the process differs between the two platforms. Once the key is added links that start with thoughtback:// will launch the apps on both iOS and OS X.

App thoughtback mac#

You will add the same key if you’re making an iOS or Mac app. Your first step is adding a URL type to your app’s ist. I’m going to show you how I’m adding it to the next versions of Thoughtback. I think this is a pretty underused feature and I would bet there are TONS of clever things people can do with it. If I have an app that wants to authenticate with Facebook, it will try and talk to the Facebook app on the phone so I don’t have to authenticate again in my other app. It could be set up so that you just have to visit a webpage on your server and click a link and have it automatically configure your email settings.įacebook uses the URL scheme for authentication in their iPhone app. Maybe you have an email app that needs some special server configurations. It could also be used for configuring your app. What this means is that you can set up your app to respond to different links in different ways.Ĭlicking a link that says myTwitterApp://sendTweet?tweet=hello could send a tweet from your twitter app. One interesting feature of iOS and Mac apps is the ability for them to be launched by a custom URL.















App thoughtback