This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<key>CFBundleURLTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleURLName</key> | |
<string>YOUR APPLICATION ID</string> | |
<key>CFBundleURLSchemes</key> | |
<array> | |
<string>YOUR APP NAME</string> | |
</array> | |
</dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function handle_attachments() { | |
// make sure we have new args before firing | |
// prevents handling of the same file every time the app opens, resumes, etc | |
args = Ti.App.getArguments(); | |
var file = args.url; | |
var source = args.source; | |
// make sure we have something to work with | |
if(!file) { | |
return false; |