{"id":15141934,"url":"https://github.com/bradmartin/nativescript-advanced-webview","last_synced_at":"2025-09-05T05:31:27.273Z","repository":{"id":44740528,"uuid":"67453043","full_name":"bradmartin/nativescript-advanced-webview","owner":"bradmartin","description":"NativeScript plugin for Chrome CustomTabs on Android and SafariViewController on iOS.","archived":false,"fork":false,"pushed_at":"2023-01-31T15:39:39.000Z","size":8266,"stargazers_count":62,"open_issues_count":13,"forks_count":28,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-24T00:25:51.435Z","etag":null,"topics":["android","chrome-custom-tabs","chrome-customtabs","customtabs","ios","nativescript","nativescript-plugin","sfsafariviewcontroller","webview"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradmartin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-05T21:51:32.000Z","updated_at":"2025-03-18T06:42:48.000Z","dependencies_parsed_at":"2023-02-16T20:45:55.600Z","dependency_job_id":null,"html_url":"https://github.com/bradmartin/nativescript-advanced-webview","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bradmartin/nativescript-advanced-webview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-advanced-webview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-advanced-webview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-advanced-webview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-advanced-webview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradmartin","download_url":"https://codeload.github.com/bradmartin/nativescript-advanced-webview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-advanced-webview/sbom","scorecard":{"id":250394,"data":{"date":"2025-08-11","repo":{"name":"github.com/bradmartin/nativescript-advanced-webview","commit":"989f38d6f88e5dd7fa8a27abaf526f1b797faedd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":1,"reason":"Found 4/29 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: npmCommand not pinned by hash: publish/pack.sh:10","Info:   0 out of   1 npmCommand dependencies pinned"],"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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 7 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"}}]},"last_synced_at":"2025-08-17T08:20:14.149Z","repository_id":44740528,"created_at":"2025-08-17T08:20:14.149Z","updated_at":"2025-08-17T08:20:14.149Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273716117,"owners_count":25155176,"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-09-05T02:00:09.113Z","response_time":402,"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":["android","chrome-custom-tabs","chrome-customtabs","customtabs","ios","nativescript","nativescript-plugin","sfsafariviewcontroller","webview"],"created_at":"2024-09-26T09:20:41.944Z","updated_at":"2025-09-05T05:31:22.249Z","avatar_url":"https://github.com/bradmartin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca align=\"center\" href=\"https://www.npmjs.com/package/nativescript-advanced-webview\"\u003e\n    \u003ch3 align=\"center\"\u003eNativeScript Advanced Webview\u003c/h3\u003e\n\u003c/a\u003e\n\u003ch4 align=\"center\"\u003e\nAn advanced webview using \u003ca href=\"https://developer.chrome.com/multidevice/android/customtabs#whatarethey\"\u003eChrome Custom Tabs\u003c/a\u003e on Android and \u003ca href=\"https://developer.apple.com/reference/safariservices/sfsafariviewcontroller?language=objc\"\u003eSFSafariViewController\u003c/a\u003e on iOS.\n\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/nativescript-advanced-webview\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/v/nativescript-advanced-webview.svg\" alt=\"npm\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/nativescript-advanced-webview\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/dt/nativescript-advanced-webview.svg?label=npm%20downloads\" alt=\"npm\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/bradmartin/nativescript-advanced-webview/stargazers\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/stars/bradmartin/nativescript-advanced-webview.svg\" alt=\"stars\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\nTo install execute:\n\n#### NativeScript 7+:\n\n```bash\nns plugin add nativescript-advanced-webview\n```\n\n#### NativeScript \u003c 7:\n\n```bash\ntns plugin add nativescript-advanced-webview@5.0.0\n```\n\n[Here is a video](https://youtu.be/LVseK_CZp5g) showing off Chrome CustomTabs in NativeScript.\n\n#### Android\n\n[CustomTabs](https://developer.android.com/reference/android/support/customtabs/package-summary.html)\n\n#### iOS\n\n[SFSafariViewController](https://developer.apple.com/reference/safariservices/sfsafariviewcontroller?language=objc)\n\n### Why use this? Because Perf Matters\n\n[Android Comparison](https://developer.chrome.com/multidevice/images/customtab/performance.gif)\n\n### Demo\n\n| Android                                   | iOS                                             |\n| ----------------------------------------- | ----------------------------------------------- |\n| ![Android Sample](screens/chromeTabs.gif) | ![iOS Sample](screens/safariViewController.gif) |\n\n## Example\n\n#### TypeScript\n\nInitiate the service before the app starts e.g app.ts, main.ts\n\n```typescript\nimport { init } from 'nativescript-advanced-webview';\ninit();\n```\n\n```typescript\nimport {\n  AdvancedWebviewEvents,\n  AdvancedWebViewOptions,\n  init,\n  NSAdvancedWebViewEventEmitter,\n  openAdvancedUrl\n} from 'nativescript-advanced-webview';\nimport { getRootView } from '@nativescript/core/application';\n\nfunction whateverYouLike() {\n  NSAdvancedWebViewEventEmitter.once(AdvancedWebviewEvents.LoadStarted, () =\u003e {\n    console.log('LOAD STARTED');\n  });\n\n  NSAdvancedWebViewEventEmitter.once(AdvancedWebviewEvents.LoadFinished, () =\u003e {\n    console.log('LOAD FINISHED');\n  });\n\n  NSAdvancedWebViewEventEmitter.once(AdvancedWebviewEvents.LoadError, () =\u003e {\n    console.log('LOAD ERROR');\n  });\n\n  NSAdvancedWebViewEventEmitter.once(AdvancedWebviewEvents.Closed, () =\u003e {\n    console.log('CLOSED');\n  });\n\n  const opts: AdvancedWebViewOptions = {\n    url: 'https://nativescript.org',\n    showTitle: true,\n    toolbarColor: '#336699',\n    toolbarControlsColor: '#fff',\n    ios: {\n        viewController: getRootView().viewController\n    }\n  };\n\n  openAdvancedUrl(opts);\n}\n```\n\n### API\n\n- openAdvancedUrl(options: AdvancedWebViewOptions)\n- close() _ iOS Only _ :: Closed the safari view controller.\n\n#### AdvancedWebViewOptions Properties\n\n- url: string\n- toolbarColor: string\n- toolbarControlsColor: string - ** iOS only **\n- showTitle: boolean - ** Android only **\n\n#### Events\n\n- LoadStart\n- LoadFinished\n- LoadError\n- Closed\n\n##### Demo App\n\n- fork the repo\n- cd into the `src` directory\n- execute `npm run demo.android` or `npm run demo.ios`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmartin%2Fnativescript-advanced-webview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradmartin%2Fnativescript-advanced-webview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmartin%2Fnativescript-advanced-webview/lists"}