Initializing a Connection to the Akula Server
Before a client app can send a requests to an app scope running on the Akula Server, including log in log out requests, you must initialize a connection to the app scope.
From an Android device, initialize the connection by calling the
AK.init() method. Pass the application context, URL of the app scope running on the Akula Server, and a unique identifier to the
AK.init() method, as the following example show:
Don't use localhost to reference the Akula Server. Use the IP address or DNS name of your machine.
Typically you access the context by calling the
Context.getApplicationContext() method, and the
AK.init() method, in the
onCreate() handler of the first activity in the client app.
From an iOS client app, use the
initialize: method of the AK class and pass the URL of the app scope: