Quick Start
Getting Started / iOS
Last updated
Getting Started / iOS
Last updated
A quick start snippet will look something like this in your app's :
This snippet assumes that the required configurations and permissions are already setup to work. Check section for more details.
Users will be need to be authenticated. This authentication will persist until shutdown is called. It will persist over the termination of the app. The configuration to enable functionality is passed here. startAutomaticDetection
will start the services. This too will be persisted and services will be automatically started when launching the app from the background.
Let us break down the overall code block into the following:
An auth state listener must be implemented to fetch a new user token if necessary.
iOS System Permissions
When services are not running properly because they are missing permissions or are not authorized on the backend, warnings or errors will be reported in the corresponding listeners.
The will look something like this:
The host app is expected to monitor updates viaauthStateChangeListener
() API and handle those changes accordingly.
Check for more details about authentication expiry and renewal.
allows host apps to configure which of the licensed Move services should be enabled. It could be based on each user preference or set from a remote server.
Based on the passed on, the SDK determines the required permissions to activate the requested services. The host app must verify that all the permissions required for the passed configs are granted.
Check for details about permissions required for each service.
The will look something like this:
The host app is expected to set its before initializing the SDK to intercept the changes caused by calling the API.
The provided block could then start the SDK when is ready
or handle errors if occurred. The provided block could look something like this:
TheAPI must be executed beforereturns. We recommend calling it in. Exceptions might apply, where the SDK is not initialized on app launch. First initialization is a good example, where the app would only initialize the SDK after onboarding the user and requesting permissions. Check for more details about the importance of adequately initializing the SDK.