Cordova Modern Browser

Cordova Modern Browser

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

$0.00

Kevin Dias

Kevin Dias

Member since 2018

Details

Version:
1.0
Ionic:
4.x  
Platforms:
Android  
Released:
1 year ago
Updated:
1 year ago
Category:
Plugins
Tags:
,

Installation

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

sh 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

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

Usage

Declare in your component

javascript declare var ModernBrowserPlugin: any;

Usage

```javascript 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

sh implementation 'com.android.support:support-v4:28.0.0'

Libraries used to make this plugin

sh https://github.com/TheFinestArtist/FinestWebView-Android https://github.com/hzw1199/AwesomeWebView-Android