• Home
  • Getting Started
  • Documentation
  • API References
  • Downloads
  • Support
Verivo
DevCenter
  • Welcome, Anonymous
  • |
  • Log in
  1. 1.0.1 Documentation
  2. Using the Akula SDKs
  3. Using the Client SDKs
  4. Initializing a Connection to the Akula Server
Printable version    

Documentation 1.0.1

Related Topics

Page: Handling Exceptions and Errors
Page: Synchronous and asynchronous requests
Page: Configuring the Client Development Environment
Page: Initializing a Connection to the Akula Server
Page: Using the Client SDKs
Page: Remote Data Access from Android and iOS Clients
Page: Using the Akula SDKs
Page: Configuring an iOS Development Environment
Page: Configuring a JavaScript Development Environment
Page: Remote Data Access from JavaScript Clients
Page: Implementing Persistence on Native Clients
  

Labels

  • android
  • javascript
  • android_sdk
  • javascript_sdk
  • client_app
  • ios_sdk
  • ios

Documentation Downloads

  • Installing and Configuring Akula
  • Building Akula Apps
  • Release Notes

All Versions

Latest Official Version (2.5)
Version 3.0 Beta
Version 2.5
Version 2.1
Version 2.0
Version 1.5
Version 1.0.1
Your Rating: Thanks for voting! Please Wait Please Wait Results: PatheticBadOKGoodOutstanding! 2 rates
Configuring a Cordova Development Environment      Synchronous and asynchronous requests
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
You must log in to comment.
 
Configuring a Cordova Development Environment      Synchronous and asynchronous requests
  • Last edited by mhorn@verivo.com on 2013-08-27 18:00:21.0

  • Privacy Policy | Legal Information
    © Copyright 2014, Verivo Software, Inc. All Rights Reserved.