
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
nativescript-awesome-webview-with-custom-menu-items
Advanced tools
Awesome WebViews for all NativeScript Apps!
A WebView plugin for NativeScript {N} that uses Chrome Custom Tabs in Android and SFSafariViewController in iOS. It is awesome because now you can use the system's default browser, letting people maintain active logins across websites (instead of having to freshly login to sites in the scope of your app's webview). Which means the custom tabs (or safari view) loads really fast! Also you can set the color of the title bar and controls of the custom tab / safari view.
As of now, there aren't any prerequisites. This should work with any device, any OS.
For tns projects (Angular, Typescript, Javascript)
tns plugin add nativescript-awesome-webview-with-custom-menu-items
For vue-cli projects (Nativescript-Vue)
npm install nativescript-awesome-webview-with-custom-menu-items
Javascript -
const {init, openWebView} = require('nativescript-awesome-webview-with-custom-menu-items');
Typescript -
import {init, openWebView} from 'nativescript-awesome-webview-with-custom-menu-items';
init()
NOTE: This warms up the Chrome Custom Tab on Android For details check this
Calling init() does nothing on iOS. So if you're making for both OS, calling the function doesn't hurt in iOS.
openWebView({
url: 'http://google.com',
toolbarColor: '#2277aa',
toolbarControlsColor: '#eebb99'
});
AwesomeWebviewOptions structure (the object you pass into openWebView)
| Property | Default | Description |
|---|---|---|
| url | required | The URL to open |
| showTitle | false | Shows title bar in the webview |
| toolbarColor | undefined | Color of the toolbar |
| toolbarControlsColor | undefined | (only iOS) color of buttons on toolbar |
| isClosed | undefined | callback function that will be called when webview is closed |
This is free, open source and do-whatever-you-want-ware. I really don't care. But if you need an official license -
Apache License Version 2.0, January 2004
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.