HybridKit is a simple, extensible messaging system for your web/native hybrid mobile apps. This is the JavaScript library you run on your web pages to communicate with your app.
Use HybridKit for iOS to enable it in your mobile apps.
Download hybridkit.js (minified) and add it to your page:
<script src="/assets/js/hybridkit.min.js"></script>
Run commands with runCommand
:
HybridKit.runCommand("alert", {
title: "Hello!",
message: "World!"
});
You can also register commands for easy access:
HybridKit.registerCommands(["alert"]);
HybridKit.alert({
title: "Hello!",
message: "World!"
});
HybridKit comes with several useful built-in commands.
Clay Allsopp (http://clayallsopp.com)
HybridKit for JavaScript is available under the MIT license. See the LICENSE file for more info.