Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialization of SDK with CIO configuration #10

Closed
3 tasks done
levibostian opened this issue May 7, 2021 · 0 comments
Closed
3 tasks done

Initialization of SDK with CIO configuration #10

levibostian opened this issue May 7, 2021 · 0 comments
Assignees
Labels

Comments

@levibostian
Copy link
Contributor

levibostian commented May 7, 2021

In order for our customers to use the SDK, they must give us some information in order for us to be able to send data to their CIO workspace. This task is to get this information and save it on the device. With this task, we are going to cater the authentication process along with the storage of authentication token, also create an interface for the customer to interact and configure the SDK accordingly.

Why are we doing this for our customers?

This task is required for our customers to use the SDK. The SDK cannot do any work successfully without this task.

How do we test that this change is successful?

Not much to test here. If future tasks such as identify a customer works after this task, we have tested it successfully.

How are we building this?

  • Create a public interfacing class, ideally singleton to configure the SDK with the required options.
CIO.configure(siteId: String, apiKey: String)

Save the siteId and apiKey to shared preferences to be reused and add the region entity to be configured.

  • Create a queue task to test credentials valid. In development mode, throw an IllegalArgumentException(). If not in development, ignore the request so no siteid or apikey get saved.

  • Create a queue task to find account region. Once response comes back from that, save the country code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants