Hi, I am trying to open a attachment file from email with certain extentions and i need to automatically open my app and imports the file into app...
this can be done in native iPhone SDK but i want in Titanium....
is there any possibility to do this....?
please help .....I am really stuck with this.....
Hey Mitul, if i understand your question, this is kind of a two-part problem. First you have to get your device to associate your app with the desired file types and second, get the attached data into your app.
To associate file types: add the code below to your Info.plist - The code
To get data into app: you need getArguments(). Didn't find a lot of documentation but i did pull out a lot of hair. basically you need listeners that wait to receive data from getArguments...which usually is a url that points to the location of the attached file...then usually have to read/write its contents to a file or an object. Here is a sample of what i did - The code
Hope this helps
This question has been locked and cannot accept new answers.