Skip to content

Integrating Ambly into Your App

Mike Fikes edited this page Sep 21, 2020 · 8 revisions

The Objective-C portion of Ambly has two components that you can integrate into your iOS app:

  1. ABYContextManager provide a set of facilities for managing the JavaScriptCore execution engine
  2. ABYServer for establishing the REPL server.
Component Dev Prod
ABYContextManager Optional Optional
ABYServer Required Not Recommended

For development builds, only ABYServer is required. You can optionally additionally make use of ABYContextManager to help set up JavaScriptCore.

Note: iOS 14 adds new privacy controls, and in order for Ambly to successfully register via Bonjour a new Info.plist setting must be added for Bonjour services specifying a String item with the value _http._tcp.

For production builds, neither is required. You can choose to use ABYContextManager for managing JavaScriptCore, or you can use any other mechanism to set up JavaScriptCore and load the compiled JavaScript.

For more detail, check out how Ambly has been integrated into this non-trivial demo app.

Clone this wiki locally