New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

modernbrowser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modernbrowser

An Android Cordova plugin that allows users to use a modern Web-browser (in App Browser) without leaving the app

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Cordova-Plugin-Modern-Browser (Android)

Screenshots

Installation

 cordova plugin add https://github.com/hitmacreed/Cordova-Plugin-Modern-Browser.git 
 ionic cordova plugin add https://github.com/hitmacreed/Cordova-Plugin-Modern-Browser.git

Info

An Android Cordova plugin that allows users to use a modern In App Webbrowser without leaving the app.

BEFORE RUN

Add to your platform/android/app/buid.gradle

  allprojects {
      repositories {
          ...
          maven { url "https://jitpack.io" }
      }
  }

Usage

Declare in your component

 declare var ModernBrowserPlugin: any;

Usage

const options = {
      url : 'https://splitting.js.org/', //URL
      statusBarColor : '#00004d', //STATUS BAR COLOR
      toolbarColor : '#ffffff', //TOOLBAR COLOR
      iconDefaultColor : '#000000', //ICONS DEFAUT COLORS
      iconDisabledColor : '#A9A9A9', //DISABLE ICONS COLOR
      iconPressedColor : '#A9A9A9', //PRESSED ICON COLORS
      webViewCameraEnabled : true, // ENALBE CAMERA ACCESS
      showIconBack : true, //SHOW ICONS BACK
      disableIconBack : false, //DISABLE ICON BACK
      showIconForward : true, //SHOW FORWARD ICON
      disableIconForward : false, //DISABLE FORWARD ICON
      showIconMenu : true, //SHOW MENU ICON
      disableIconMenu : false, //DISABLE ICON MENU
      fileChooserEnabled : true, //SHOW FILE CHOSSER
      showProgressBar: true, //SHOW PROGESS BAR
      progressBarColor: '#00004d', //PROGRESS BAR COLOR
      showUrl: true, //SHOW URL TITLE
      titleColor: '#000000', //URL TITLE COLOR
      menuColor: '#ffffff', //MENU OPTIONS COLOR
      webViewAppCacheEnabled : false, //BROWSER CACHE 
      webViewGeolocationEnabled: true, //GEOLOCALTION
      webViewAudioEnabled: true, //ENABLE AUDIO ACCESS
      webViewCookieEnabled: true //ENABLE COOKIES
    };

    ModernBrowserPlugin.create(options, function(loaded) {
      console.log(loaded);
      // DO SOMETHING AFTER URL LOAD
      }, function(err) {
      console.log(err);
    });
 

KNOW ISSUE

error: duplicate value for resource 'attr/layout_anchorGravity' with config ''.

Solution

implementation 'com.android.support:support-v4:28.0.0' 
Libraries used to make this plugin
https://github.com/TheFinestArtist/FinestWebView-Android
https://github.com/hzw1199/AwesomeWebView-Android

Keywords

plugin

FAQs

Package last updated on 15 Jul 2019

Did you know?

Socket

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.

Install

Related posts