You are here

Trigger Forge API - Sample Source Code

Trigger.io has developed Forge, a cross-platform app framework that allows web developers to create native iOS and Android apps from a single HTML5 code database.
Their SaaS build service employs a Python based open source command line tool that allows developers to execute a build using a single customized JSON config file, and then returns Forge-generated JavaScript and native code templates (their starter plan produces Chrome-ready JavaScript, Java for Android, and Objective-C for iOS). Using the provided Python build tools, app templates, and the build instructions generated by Forge, developers can then complete the final stages of the build locally. The process is completed when the contents of the developer's custom app code - HTML, CSS, and JavaScript - are injected into the Forge-generated code to create finalized native apps. Because the build is created before the integration of user code, developers can easily integrate changes to their HTML, CSS, and JavaScript without re-running the build.
Trigger's Forge API exposes a variety of methods for working with Forge generated code to create a custom user app experience. A few examples of the functionality provided by this API are detecting platforms, creating notifications, logging end-user preferences, managing tabs and toolbars, adding listeners, and accessing a mobile devices filesystem or camera.

The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.