Create a new anonymous user account. Geoloqi will have no identifying
information for the user other than the properties you pass in the extraData.
This will actually create a new user on the Geoloqi API.
The SDK stores the session token locally so the account can be restored when
the app re-launches.

Other Methods

As a convenience, you can use these methods to run an arbitrary API request with the current session.
Payload should be a JSON-compatible object of the type that the API is expecting (NSDictionary or NSArray)
OAuth 2.0 authorization is implemented automatically.

Other Methods

runAPIRequest:completion: will attempt to load the resource specified by the request parameter from the geoloqi server.
If there is an error with HTTP loading or JSON deserialization, it will be return in the error paramater and responseDictionary will be nil,
while the response paramater may still contain the response recieved as applicable.

Other Methods

Any of methods on LQSession that return ‘id’ can be passed to this method to indicate the request is no longer necessary.
It is not guaranteed that the request will not go through, however. The server may already have processed
the request, so be prepared to respond accordingly.

Discussion

Create a new Geoloqi account with the requested username and password.
The Geoloqi API will return an error if there is already a user with the
requested username.

Declared In

LQSession.h

createAnonymousUserAccountWithUserInfo:completion:

Create a new anonymous user account. Geoloqi will have no identifying
information for the user other than the properties you pass in the extraData.
This will actually create a new user on the Geoloqi API.
The SDK stores the session token locally so the account can be restored when
the app re-launches.

Discussion

Create a new anonymous user account. Geoloqi will have no identifying
information for the user other than the properties you pass in the extraData.
This will actually create a new user on the Geoloqi API.
The SDK stores the session token locally so the account can be restored when
the app re-launches.

Declared In

LQSession.h

deviceIdentifier

A device identifier will be generated and stored to NSUserDefaults unless you call setDeviceIdentifier: with a different value

+ (NSData *)deviceIdentifier

Discussion

A device identifier will be generated and stored to NSUserDefaults unless you call setDeviceIdentifier: with a different value

Declared In

LQSession.h

handlePush:

If a push notification is received when your app is in the foreground, you can call this method
from the app delegate and the SDK will handle everything for you

+ (void)handlePush:(NSDictionary *)userInfo

Discussion

If a push notification is received when your app is in the foreground, you can call this method
from the app delegate and the SDK will handle everything for you

Declared In

LQSession.h

pushDisabled

If you don’t want to use Geoloqi’s push notification implementation, call +setPushDisabled:YES before you create an LQSession.

+ (BOOL)pushDisabled

Discussion

If you don’t want to use Geoloqi’s push notification implementation, call +setPushDisabled:YES before you create an LQSession.

Declared In

Instance Methods

associatePushDeviceToken:

Discussion

Associate the given push device token with the session’s account.

Declared In

LQSession+Private.h

cancelRequest:

Any of methods on LQSession that return ‘id’ can be passed to this method to indicate the request is no longer necessary.
It is not guaranteed that the request will not go through, however. The server may already have processed
the request, so be prepared to respond accordingly.

- (void)cancelRequest:(id)request

Discussion

Any of methods on LQSession that return ‘id’ can be passed to this method to indicate the request is no longer necessary.
It is not guaranteed that the request will not go through, however. The server may already have processed
the request, so be prepared to respond accordingly.

Declared In

LQSession.h

requestWithMethod:path:payload:

As a convenience, you can use these methods to run an arbitrary API request with the current session.
Payload should be a JSON-compatible object of the type that the API is expecting (NSDictionary or NSArray)
OAuth 2.0 authorization is implemented automatically.

Discussion

As a convenience, you can use these methods to run an arbitrary API request with the current session.
Payload should be a JSON-compatible object of the type that the API is expecting (NSDictionary or NSArray)
OAuth 2.0 authorization is implemented automatically.

Declared In

LQSession.h

runAPIRequest:completion:

runAPIRequest:completion: will attempt to load the resource specified by the request parameter from the geoloqi server.
If there is an error with HTTP loading or JSON deserialization, it will be return in the error paramater and responseDictionary will be nil,
while the response paramater may still contain the response recieved as applicable.

Discussion

runAPIRequest:completion: will attempt to load the resource specified by the request parameter from the geoloqi server.
If there is an error with HTTP loading or JSON deserialization, it will be return in the error paramater and responseDictionary will be nil,
while the response paramater may still contain the response recieved as applicable.