{"id":23456409,"url":"https://github.com/kunder-lab/com.borismus.webintent","last_synced_at":"2025-06-23T05:08:04.442Z","repository":{"id":57203720,"uuid":"87337726","full_name":"kunder-lab/com.borismus.webintent","owner":"kunder-lab","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-23T14:45:25.000Z","size":17,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-23T05:07:53.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kunder-lab.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-05T17:29:37.000Z","updated_at":"2017-04-05T17:46:26.000Z","dependencies_parsed_at":"2022-09-16T14:11:12.904Z","dependency_job_id":null,"html_url":"https://github.com/kunder-lab/com.borismus.webintent","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kunder-lab/com.borismus.webintent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fcom.borismus.webintent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fcom.borismus.webintent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fcom.borismus.webintent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fcom.borismus.webintent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kunder-lab","download_url":"https://codeload.github.com/kunder-lab/com.borismus.webintent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fcom.borismus.webintent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261417589,"owners_count":23155074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-24T04:31:17.653Z","updated_at":"2025-06-23T05:07:59.424Z","avatar_url":"https://github.com/kunder-lab.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebIntent Android Plugin for Cordova 3.X #\nBy Boris Smus\n\nPhonegap/Cordova 2.X version available at the [WebIntent](https://github.com/phonegap/phonegap-plugins/tree/master/Android/WebIntent) plugin site.\n\n## Adding the Plugin to your project ##\n1. To install the plugin, use the Cordova CLI and enter the following:\n\n`cordova plugin add https://github.com/Initsogar/cordova-webintent.git`\n\n2. Confirm that the following is in your `res/xml/config.xml` file:\n\n`\u003cplugin name=\"WebIntent\" value=\"com.borismus.webintent.WebIntent\" /\u003e`\n\n## Sample code\n\nHere is an example of using webintent to open an Android .apk package, which then launches the Installer:\n\n    window.plugins.webintent.startActivity({\n          action: window.plugins.webintent.ACTION_VIEW,\n          url: theFile.toURL(),\n          type: 'application/vnd.android.package-archive'\n        },\n        function() {},\n        function() {\n          alert('Failed to open URL via Android Intent.');\n          console.log(\"Failed to open URL via Android Intent. URL: \" + theFile.fullPath)\n        }\n    );\n\n\n## Using the plugin ##\nThe plugin creates the object `window.plugins.webintent` with five methods:\n\n### startActivity ###\nLaunches an Android intent. For example:\n\n\n    window.plugins.webintent.startActivity({\n        action: window.plugins.webintent.ACTION_VIEW,\n        url: 'geo:0,0?q=' + address},\n        function() {},\n        function() {alert('Failed to open URL via Android Intent')};\n    );\n\n\n### hasExtra ###\nchecks if this app was invoked with the specified extra. For example:\n\n    window.plugins.webintent.hasExtra(window.plugins.webintent.EXTRA_TEXT,\n        function(has) {\n            // has is true iff it has the extra\n        }, function() {\n            // Something really bad happened.\n        }\n    );\n\n### getExtra ###\nGets the extra that this app was invoked with. For example:\n\n    window.plugins.webintent.getExtra(window.plugins.webintent.EXTRA_TEXT,\n        function(url) {\n            // url is the value of EXTRA_TEXT\n        }, function() {\n            // There was no extra supplied.\n        }\n    );\n\n### getUri ###\nGets the Uri the app was invoked with. For example:\n\n    window.plugins.webintent.getUri(function(url) {\n        if(url !== \"\") {\n            // url is the url the intent was launched with\n        }\n    });\n\n### resetUri ###\nReset the value of the URL if it has been configured. For example:\n\n    window.plugins.webintent.resetUri(function() {\n        // do something in success case\n    }, function() {\n        // do something in error case\n    });\n\n### onNewIntent ###\nGets called when onNewIntent is called for the parent activity. Used in only certain launchModes. For example:\n\n    window.plugins.webintent.onNewIntent(function(url) {\n        if(url !== \"\") {\n            // url is the url that was passed to onNewIntent\n        }\n    });\n\n### sendBroadcast ###\nSends a custom intent passing optional extras\n\n    window.plugins.webintent.sendBroadcast({\n                action: 'com.dummybroadcast.action.triggerthing',\n                extras: {\n                    'option': true\n                }\n            }, function() {\n            }, function() {\n    });\n\n## Licence ##\n\nThe MIT License\n\nCopyright (c) 2010 Boris Smus\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkunder-lab%2Fcom.borismus.webintent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkunder-lab%2Fcom.borismus.webintent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkunder-lab%2Fcom.borismus.webintent/lists"}