Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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?

— asked August 13th 2010 by Peter Lum
  • associations
  • attachement
  • auto
  • email
  • extension
  • file
  • iphone
  • load
0 Comments

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?

    — answered August 13th 2010 by Peter Lum
    permalink
    0 Comments
  • Anyone?

    — answered August 13th 2010 by Peter Lum
    permalink
    0 Comments
  • Did you ever figure out how to pass data to an app when opening it with a URL Scheme?

    — answered December 26th 2010 by David Knell
    permalink
    0 Comments
  • Anyone solve this yet?? I'm currently trying to achieve this and have not found any info whether its possible.

    — answered May 16th 2011 by Tracy Hayman
    permalink
    0 Comments
  • Hello Currently I am also trying to achieve this… But not getting any clue with titaniu… any budy found anything yet?

    — answered May 26th 2011 by chintan adatiya
    permalink
    0 Comments
  • This post seems to have the answer: http://developer.appcelerator.com/question/120393/custom-url-scheme—iphone–android#208912

    — answered October 4th 2012 by Paul M
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.