Coder Social home page Coder Social logo

godhand1607 / cordova-plugin-inappbrowser-popup-bridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dpa99c/cordova-plugin-inappbrowser-popup-bridge

1.0 1.0 0.0 1.16 MB

A fork of cordova-plugin-inappbrowser which adds Braintree's PopupBridge functionality to support PayPal payments

License: Apache License 2.0

Java 31.22% JavaScript 28.01% Objective-C 36.86% CSS 1.35% HTML 2.56%

cordova-plugin-inappbrowser-popup-bridge's Introduction

cordova-plugin-inappbrowser-popup-bridge

This is a fork of cordova-plugin-inappbrowser which adds support for Braintree's PopupBridge libraries for Android and iOS to support PayPal payments within the context of the InappBrowser element of a Cordova-based app.

The purpose of PopupBridge is to allow Webviews to open emulated popup windows in a browser and send data back to the parent page in the Webview. This is essential for Web-based PayPal checkout flows which use the Braintree JS SDK which supports popup emulation via PopupBridge.

See the example app project which demonstrates usage of cordova-plugin-inappbrowser-popup-bridge.

Installation

cordova plugin add cordova-plugin-inappbrowser-popup-bridge

iOS:

  • PopupBridge requires WKWebView.
  • Therefore, this plugin depends on cordova-plugin-wkwebview-engine which adds WKWebView support to Cordova.
    • You need to add this manually: cordova plugin add cordova-plugin-wkwebview-engine
    • Or you can use the Ionic variant: cordova plugin add cordova-plugin-ionic-webview
  • This means the main Cordova app Webview will also use WKWebView on iOS 9+.

Supported platform versions

  • This plugin officially supports iOS 9.0+ and Android 4.4+
    • These are the versions supported by PopupBridge
  • However, this plugin will compile on iOS 8.0+ and Android 4.1+
    • When running on earlier versions on which PopupBridge is not supported, it is the responsibility of the app which uses this plugin how it should behave.
    • For example, fall back to launching the system browser instead of in-app browser. This means the user is taken out of the original app to the default browser app, but at least can fulfill their PayPal payment before manually navigating back to the original app.

Example app

cordova-plugin-inappbrowser-popup-bridge-test contains a Cordova project which builds a test app for Android and iOS to illustrate usage of this plugin.

cordova-plugin-inappbrowser-popup-bridge's People

Contributors

agrieve avatar akofman avatar alsorokin avatar cjpearson avatar clelland avatar cmarcelk avatar darron1217 avatar dblotsky avatar dpa99c avatar filmaj avatar hardeep avatar hermwong avatar infil00p avatar jcesarmobile avatar jpchase avatar jsoref avatar ldeluca avatar matrosov-nikita avatar nadyaa avatar niklasmerz avatar normesta avatar purplecabbage avatar riknoll avatar robario avatar rodms10 avatar sgrebnov avatar shazron avatar stevengill avatar vladimir-kotikov avatar zalun avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.