Documentation 1.0.1
Related Topics

Labels
Documentation Downloads
All Versions
Documentation Version 1.0.1
NOTE: You are currently viewing version 1.0.1 of the Akula documentation.
View the latest version of this page or go to the current documentation home page. |
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 a JavaScript client app, you only pass the URL of the app scope:
From an iOS client app, use the initialize:
method of the AK class and pass the URL of the app scope:
0 Comments
Hide/Show Comments