{"id":31791246,"url":"https://github.com/mfdeveloper/cordova-plugin-nativeview","last_synced_at":"2025-10-10T16:53:08.576Z","repository":{"id":24767276,"uuid":"102396613","full_name":"mfdeveloper/cordova-plugin-nativeview","owner":"mfdeveloper","description":"Start a native view relative to your cordova app, or an external app","archived":false,"fork":false,"pushed_at":"2023-01-07T08:53:57.000Z","size":4482,"stargazers_count":43,"open_issues_count":44,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-28T11:38:02.395Z","etag":null,"topics":["activity","cordova","cordova-android","cordova-ios","native","startapp","uiviewcontroller"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfdeveloper.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}},"created_at":"2017-09-04T19:46:54.000Z","updated_at":"2024-04-18T16:08:09.000Z","dependencies_parsed_at":"2023-01-14T01:35:03.553Z","dependency_job_id":null,"html_url":"https://github.com/mfdeveloper/cordova-plugin-nativeview","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/mfdeveloper/cordova-plugin-nativeview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfdeveloper%2Fcordova-plugin-nativeview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfdeveloper%2Fcordova-plugin-nativeview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfdeveloper%2Fcordova-plugin-nativeview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfdeveloper%2Fcordova-plugin-nativeview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfdeveloper","download_url":"https://codeload.github.com/mfdeveloper/cordova-plugin-nativeview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfdeveloper%2Fcordova-plugin-nativeview/sbom","scorecard":{"id":638720,"data":{"date":"2025-08-11","repo":{"name":"github.com/mfdeveloper/cordova-plugin-nativeview","commit":"446da019f5327b69dd96907ed383dca91036eb05"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"147 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-c75v-2vq8-878f","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-3wcq-x3mq-6r9p","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-jg8v-48h5-wgxg","Warn: Project is vulnerable to: GHSA-36fh-84j7-cv5h","Warn: Project is vulnerable to: GHSA-7x7c-qm48-pq9c","Warn: Project is vulnerable to: GHSA-rc3x-jf5g-xvc5","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-82v2-mx6x-wq7q","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-jmqm-f2gx-4fjv","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-q674-xm3x-2926","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-gff7-g5r8-mg8m","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-c9g6-9335-x697","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-884p-74jh-xrg2","Warn: Project is vulnerable to: GHSA-j7fq-p9q7-5wfv","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-mgfv-m47x-4wqp","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-4fc4-chg7-h8gh","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-wg6g-ppvx-927h","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-xc7v-wxcw-j472"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T10:02:23.142Z","repository_id":24767276,"created_at":"2025-08-21T10:02:23.142Z","updated_at":"2025-08-21T10:02:23.142Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004685,"owners_count":26083751,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["activity","cordova","cordova-android","cordova-ios","native","startapp","uiviewcontroller"],"created_at":"2025-10-10T16:52:36.629Z","updated_at":"2025-10-10T16:53:08.570Z","avatar_url":"https://github.com/mfdeveloper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/cordova-plugin-nativeview.svg)](https://badge.fury.io/js/cordova-plugin-nativeview)\n[![](https://jitpack.io/v/mfdeveloper/cordova-plugin-nativeview.svg)](https://jitpack.io/#mfdeveloper/cordova-plugin-nativeview)\n\n---\ntitle: NativeView\ndescription: Starts native view or another app, from a cordova app.\n---\n\n# cordova-plugin-nativeview\n\nStart an UIViewController(_IOS_) or Activity(_Android_) relative to your cordova app, or an external app (based in [cordova plugin startapp](https://github.com/mfdeveloper/com.lampa.startapp) cordova plugin)\n\nYou can use this in a standalone project (basic cordova project), or into an existing native _Android/IOS_ application, like described in [Embed Cordova in native apps](https://cordova.apache.org/docs/en/latest/guide/hybrid/webviews/index.html)\n\n\u003e **OBS:** If you wish just **EXIT** from cordova app or back to native view (Android only), use: `navigator['app'].exitApp()`\n\n## Installation\n    \n```bash\ncordova plugin add cordova-plugin-nativeview --save\n\n# using IONIC\nionic cordova plugin add cordova-plugin-nativeview --save\n```\n\n### Extra: Native app (_Android/IOS_ native code)\n\n**ALL PLATFORMS**\n\nMake sure that `config.xml` file contains the `\u003cfeature\u003e` tag below:\n\n```xml\n\u003cfeature name=\"NativeView\"\u003e\n    \u003cparam name=\"android-package\" value=\"br.com.mfdeveloper.cordova.NativeView\" /\u003e\n    \u003cparam name=\"onload\" value=\"true\" /\u003e\n\u003c/feature\u003e\n```\n\n**IOS**\n\n* Copy the `config.xml` from your cordova project to root XCode project directory.\n* Install [cocoapods](https://cocoapods.org/)\n* Add this plugin like a [pod](https://guides.cocoapods.org/syntax/podfile.html) dependency:\n\n```ruby\n# Objective-C version (Default)\npod 'cordova-plugin-nativeview', '~\u003e 1.0.7'\n\n# Swift version (needs update to latest Objective-c implementations)\npod 'cordova-plugin-nativeview', :git =\u003e 'https://github.com/mfdeveloper/cordova-plugin-nativeview.git', :branch =\u003e 'swift'\n```\n\n**ANDROID**\n\n\nAdd this code snippet below to your `build.gradle` file\n\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n\nimplementation ('com.github.mfdeveloper:cordova-plugin-nativeview:1.0.7')\n```\n\u003e This dependency is added using [jitpack](https://jitpack.io)\n\nOr add, the `NativeView` class directly to your android project:\n\n* From your cordova project:\n\n    - Copy the content off `platforms/android/assets/www` folder to your android project (usually, `app/src/main/assets`).\n      Or create a **gradle** task to do this.\n    - Copy the `config.xml` to `src/main/res/xml` android project folder.\n\n* Clone this repo, and copy the class: `src/android/NativeView.java` to your Android project\n\n* Or create a `.jar` or a `.aar` that contains this class, and import like a [Android module dependency](https://developer.android.com/studio/projects/android-library.html#AddDependency)\n\n* Verify if the code snippet below is present in your `AndroidManifest.xml`. This is required to open a specific Activity from a [Intent](https://developer.android.com/reference/android/content/Intent.html) (using **[package + activityName]**)\n\n```xml\n\u003cactivity android:name=\".MyActivity\" \u003e\n    \u003cintent-filter\u003e\n        \u003caction android:name=\"com.mypackage.MyActivity\" /\u003e\n        \u003ccategory android:name=\"android.intent.category.DEFAULT\" /\u003e\n    \u003c/intent-filter\u003e\n\u003c/activity\u003e\n```\n\u003e If this filter not exists in `AndroidManifest.xml`, you will get this error: [No Activity found to handle Intent splash screen](https://stackoverflow.com/questions/15614561/android-content-activitynotfoundexception-no-activity-found-to-handle-intent-sp)\n\n* Build/Run your android project!\n\n## Supported Platforms\n\n- ![Android](icons/android.png) Android\n- ![iOS](icons/ios.png) iOS\n\n## Methods\n\n### NativeView.show(packageOrClassName: string, className: string)\n\nOR\n\n### NativeView.show(params: object)\n\n\u003e Shows a native view.\n\n\n### ANDROID\n\n```js\n\ndocument.addEventListener(\"deviceready\", function() {\n    //  pass a package name and a activity by params\n    cordova.plugins.NativeView.show('com.mycompany', 'MyActivity')\n    .then(function() {\n      \n      /**\n       * Do something when open the activity.\n       * This code here will be executed in paralell,\n       * not after open.\n       */\n    }).catch(function(error) {\n        \n        /**\n         * error.success =\u003e Will be \"false\"\n         * error.name =\u003e Exception type from the captured error \n         * error.message =\u003e A exception message\n         */\n    });\n\n    // Preferably, pass the Package and Activity in a json\n    cordova.plugins.NativeView.show({\n        packageName: 'com.mycompany',\n        className: 'MyActivity',\n    });\n\n}, false);\n\n```\n### IOS\n\n\n - Pass `Storyboard` name and `storyboard id`\n\n```js\ndocument.addEventListener(\"deviceready\", function() {\n\n    /*\n     * The first param is a storyboard name, and\n     * the second param is a storyboardId \n     * (conventionally the same name of the ViewController class name)\n     */\n    cordova.plugins.NativeView.show('MyStoryboard', 'MyUIViewController')\n    .then(function() {\n      \n      /**\n       * Do something when open the activity.\n       * This code here will be executed in paralell,\n       * not after open.\n       */\n    });\n\n    // Preferably, pass the ViewController and Storyboard in a json\n    cordova.plugins.NativeView.show({\n        storyboardName: 'MyStoryboard',\n        viewControllerName: 'MyUIViewController'\n    });\n\n}, false);\n\n```\n\n- Pass only the `ViewController` class/xib name\n\n```js\n/*\n*  Or, pass only the UIViewController name, if you don't\n*  use storyboards in your project. This plugin try instantiate\n*  from a \".xib\" file. If not exists, try instantiate just by\n*  UIViewController class.\n* \n*  By convention, your ViewController class/xib needs contains 'Controller' \n*  string in any part of the name \n* .\n*/\ncordova.plugins.NativeView.show('MyUIViewController');\n\n// Preferably, pass the ViewController in a json\ncordova.plugins.NativeView.show({\n    viewControllerName: 'MyUIViewController'\n});\n```\n\n- Pass only the `Storyboard` name\n\n```js\n/*\n*  Or, pass only the Storyboard name. If you don't pass a \n*  ViewController class name in second param, the \n*  \"rootViewController\" of your storyboard will be\n*  instantiated. \n* \n*  By convention, your Storyboard name needs contains 'Storyboard' \n*  string in any part of the name\n*/\ncordova.plugins.NativeView.show('MyStorboard');\n\n// Preferably, pass the Storyboard in a json\ncordova.plugins.NativeView.show({\n    storyboardName: 'MyStorboard'\n});\n````\n\n### NativeView.checkIfAppInstalled(uri: string)\n\nOR\n\n### NativeView.checkIfAppInstalled(params: { uri: string })\n\n\u003e Verify if another app that responds to a `uri` is installed on device.\n\n```js\n\ncordova.plugins.NativeView.checkIfAppInstalled('another-app://custom-host')\n.then(function() {\n    console.log('The app is INSTALLED!');\n}).catch(function(error) {\n    console.log(\"The app is NOT INSTALLED!\");\n    throw error;\n});\n\n// Preferably, pass the uri in a json\ncordova.plugins.NativeView.show({\n    uri: 'another-app://custom-host'\n});\n```\n\n### NativeView.showMarket(marketId: string)\n\nOR\n\n### NativeView.showMarket(params: { marketId: string })\n\n\u003e Open the store (Apple Store/Google Play) app installed in your device, or in a browser.\n\n### ANDROID\n\n```js\n\n// Pass a app package on Android (found this on Google Play)\ncordova.plugins.NativeView.showMarket('my.company.other.app');\n\n// Preferably, pass the marketId in a json\ncordova.plugins.NativeView.show({\n    marketId: 'my.company.other.app'\n});\n```\n\n### IOS\n\n```js\n\n// Pass a app id from the Apple Store\ncordova.plugins.NativeView.showMarket('idxyz1?mt=x');\n\n// Preferably, pass the marketId in a json\ncordova.plugins.NativeView.showMarket({\n    marketId: 'idxyz1?mt=x'\n});\n```\n\n### NativeView.getBuildVariant(params: { catchError: boolean })\n\n\u003e Get the current Android build variant configured in \n\n### ANDROID (ONLY)\n\n```js\n\n/*\n* Pass the param \"catchError\", and use the `catch()` method to verify an \n* error (if happens)\n*\n* Otherwise, this method will return the variant like a string,\n* or null if not found.\n*\n* This is useful if you need show a NativeView by environment\n*/\ncordova.plugins.NativeView.getBuildVariant({\n    catchError: true\n}).then(function(value) {\n    console.log('My environment is: ' + value);\n}).catch(function(error) {\n    if (!error.success \u0026\u0026 error.message) {\n        console.log(error.message);\n    }\n});\n\n/* Optionally, don't pass any parameter and get the Build Variant \n * value, or NULL\n */\ncordova.plugins.NativeView.getBuildVariant()\n.then(function(value) {\n    console.log('My environment is: ' + value);\n});\n```\n\n### IONIC\n\nReplace `document.addEventListener` event to `this.platform.ready().then(...)` service method. See [IONIC Platform documentation](https://ionicframework.com/docs/api/platform/Platform/)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## TODO\n\n- [x] Better catch IOS exception from JS\n- [ ] Update `Swift` implementation\n- [ ] Add cordova integration tests\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfdeveloper%2Fcordova-plugin-nativeview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfdeveloper%2Fcordova-plugin-nativeview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfdeveloper%2Fcordova-plugin-nativeview/lists"}