Git Product home page Git Product logo

ponto's Introduction

Ponto

A simple, portable wire protocol to allow two-ways asynchronous communication between:

  • native iOS/Android contextes and the JavaScript context of Webviews
  • IFrame child and parent within a Webview (or standard web browser)

Rationale

Some popular HTML5-based cross-platform frameworks for mobile application development, such as Apache PhoneGap/Cordova and Trigger.IO (but also non-HTML5 frameworks as it happens for Appcelerator Titanium's WebViews) are built on the top of inter-context communication, i.e. the JavaScript code running in the WebView is able to interact with classes/methods hosted in the native layer to access platform capabilities not accessible using the DOM API (e.g. the device's filesystem or camera) while the native app code is able to send information back to the WebView (e.g. the list of images in the device's media library).

Native Android/iOS applications that implement WebViews in their flow may need, at any given point to be able to do the same.

The aforementioned existing implementations aren't abstract enough to be extracted and reused out of the box, most of the times their code contains quirks that make sense in the context of the specific framework making the code not generic enough to be embedded in another application easily or without refactoring it.

For those reasons we have developed Ponto ("bridge" in Esperanto), a generic library that can do all of the above and it's ready to be embedded in any iOS/Android app using WebViews with a simple API.

Documentation

Credits

This project exists thanks to the efforts of:

ponto's People

Contributors

wikia-gregor avatar bkoval avatar arturklajnerok avatar alistra avatar hakubo avatar aniamu avatar

Watchers

James Cloos avatar Serhat Sürgüveç 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.