Latest 0.1.0
Homepage https://github.com/Wikia/ponto
License MIT
Platforms ios 6.1, requires ARC
Authors

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:

Latest podspec

{
    "name": "Ponto",
    "version": "0.1.0",
    "summary": "Ponto is comunication bridge between HTML and Native.",
    "description": "                       Ponto is comunication bridge between HTML and Native.n                       With Ponto you can call native methods from JS inside WebView, or call JS methods from native code.n",
    "homepage": "https://github.com/Wikia/ponto",
    "license": "MIT",
    "authors": {
        "Grzegorz Nowicki": "[email protected]"
    },
    "platforms": {
        "ios": "6.1"
    },
    "source_files": "ios/Ponto/PontoLib/*.{h,m}",
    "source": {
        "git": "https://github.com/Wikia/ponto.git",
        "tag": "0.1.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This