-
Notifications
You must be signed in to change notification settings - Fork 21
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:
-
ABYContextManager
provide a set of facilities for managing the JavaScriptCore execution engine -
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.