{"id":17348178,"url":"https://github.com/jperelli/cordova-plugin-register-filetype","last_synced_at":"2026-05-09T06:36:39.885Z","repository":{"id":66159671,"uuid":"81134118","full_name":"jperelli/cordova-plugin-register-filetype","owner":"jperelli","description":"Register a filetype to be opened with your app when tapping on a file","archived":false,"fork":false,"pushed_at":"2017-02-08T17:09:14.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T17:02:35.244Z","etag":null,"topics":["cordova","cordova-ios","cordova-plugin","ionic","ionic-plugin","phonegap","phonegap-plugin","plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jperelli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-06T21:12:52.000Z","updated_at":"2017-06-20T01:57:56.000Z","dependencies_parsed_at":"2023-02-21T08:31:20.119Z","dependency_job_id":null,"html_url":"https://github.com/jperelli/cordova-plugin-register-filetype","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jperelli/cordova-plugin-register-filetype","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jperelli%2Fcordova-plugin-register-filetype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jperelli%2Fcordova-plugin-register-filetype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jperelli%2Fcordova-plugin-register-filetype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jperelli%2Fcordova-plugin-register-filetype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jperelli","download_url":"https://codeload.github.com/jperelli/cordova-plugin-register-filetype/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jperelli%2Fcordova-plugin-register-filetype/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32810006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cordova","cordova-ios","cordova-plugin","ionic","ionic-plugin","phonegap","phonegap-plugin","plugin"],"created_at":"2024-10-15T16:51:19.433Z","updated_at":"2026-05-09T06:36:39.354Z","avatar_url":"https://github.com/jperelli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cordova-plugin-register-filetype\n\nRegister a filetype to be opened with your app when clicking on the file.\n\nPlugin only working for iOS right now. This is extremely useful for iOS apps because they cannot open files outside their sandbox.\n\n## Installation\n\n    cordova plugin add https://github.com/jperelli/cordova-plugin-register-filetype.git --variable EXTENSION=\u003cmy-file-extension\u003e --variable MIMETYPE=application/x-my-mimetype\n\n## Usage\n\nDefine a window.handleOpenURL(url) function to react to the file opening. This function will be called when your app is opened from a file being open.\n\n    // insert this script in index.html\n    \u003cscript\u003e\n      function handleOpenURL(url) {\n\n        // url will be something like \"file:///path/to/file.extension\"\n        console.log(url);\n\n        setTimeout(function() {\n          // use timeout to avoid problems when using other plugins here (workaround for a cordova issue, see https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/93)\n          // you can read the file here using the cordova-plugin-file\n        }, 0);\n\n      }\n    \u003c/script\u003e\n\n## Future plans\n\nWe are working to\n\n - Add android support\n - Remove the need of setTimeout workaround\n - Upload the plugin to npm\n\n## Contributors\n\n - Julian Perelli\n - Mauricio Pérsico\n\n## License\n\nGNU GPL v3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjperelli%2Fcordova-plugin-register-filetype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjperelli%2Fcordova-plugin-register-filetype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjperelli%2Fcordova-plugin-register-filetype/lists"}