Hi,
Is it possible (or can you make it possible) to launch a Corona App from Safari, Mail, etc… via a custom url scheme while passing information to it.
On iOS natively this seems to be very easy, just adding a couple of lines to the info.plist
CFBundleURLTypes
CFBundleURLSchemes
myapp
CFBundleURLName
com.yourcompany.myapp
and implementing a message handler
- (BOOL)application:(UIApplication \*)application handleOpenURL:(NSURL \*)url
{
if (!url) { return NO; }
NSString \*URLString = [url absoluteString];
[[NSUserDefaults standardUserDefaults] setObject:URLString forKey:@"url"];
[[NSUserDefaults standardUserDefaults] synchronize];
return YES;
}
Then one would be able to call the app from anywhere (FB, Twitter, …) just via:
myapp://?foo=1&bar=2
There is a great tutorial how to achieve this with Objective-C and XCode for iOS-Systems, which I am exclusively interested in right now:
http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
I’m having a great prototype and this feature could make the difference between an average selling and a viral app.
Cheers,
Kai [import]uid: 36753 topic_id: 8325 reply_id: 308325[/import]