Set file registrations on iphone?
Hi
This is my scenario:
When someone receives an email with an attachment of certain file extensions (e.g. CSV), and opens the attachment, I need iphone to automatically open my app and imports the file into the app.
I think it can be done as I have seen other apps doing it; like FileApp. But can it be achieved in titanium?
6 Answers
-
Hi
I found some 'answers' by googling..
The gist of it:Edit info.plist
CFBundleURLTypes
CFBundleURLSchemes myapp CFBundleURLName com.yourcompany.myapp
In the iphone app, uisng a UIApplicationDelegate to have a custom 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;
}
BUT how to do this in titanium?
-
Anyone?
-
Did you ever figure out how to pass data to an app when opening it with a URL Scheme?
-
Anyone solve this yet?? I'm currently trying to achieve this and have not found any info whether its possible.
-
Hello Currently I am also trying to achieve this… But not getting any clue with titaniu… any budy found anything yet?
-
This post seems to have the answer: http://developer.appcelerator.com/question/120393/custom-url-scheme—iphone–android#208912