Ponto

A native iOS (Obj-C) and Android (Java) to Webview (JavaScript) bridge for exchanging data across contextes.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

51

Maintenance

Last Commit

6yrs ago

Contributors

11

Package

Dependencies

0

License

MIT

Categories

Readme

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:

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100