SDK internals
Last updated
Was this helpful?
Last updated
Was this helpful?
This page is for SDK developers
You can extend aidbox with Apps. App can work with one box or many boxes. App is a REST service, which talks with through simple REST protocol. App can work with one box or many boxes. Protocol details are abstracted by SDK.
First of all, App should register itself in a box.
For single box, app has credentials to a specific box:
At app start it sends init message to box with his endpoint url and app secret
Box sends init message to app with box coordinates (box url, client_id, client_secret), in response App upload Manifest into box
App registered by hands in aidbox with specific client id and secret as well app secret
When app has started, it sends init message into aidbox init uri
Aidbox checks for which boxes this app is registered
For each box it calls "Single box app: phase 2".