Configuration
#
DefinitionA configuration is a set of json config for OAuth, Tracker, Payment, Hestia and other Teko services...
One App can have many versions, each Version can have some Environment, and each environment have an according configuration.
The configuration is setup from Terra Console and then downloaded to client by Terra
library.
#
Example of an app configuration#
Create initial fileTerra
will manage configuration of your app automatically, the only thing it will need is a initial file placed inside your project.
You can create this file following one of below method:
#
Manually- Android
- iOS
Create a file named TerraService-<product_code>.json in app assets
folder with below data
Create a file named TerraService-Info.plist in project folder with below data
ProductCode
is your product code, for detail please refer hereTerraClientID
is your app client id, for detail please refer hereTerraEnvironment
is Terra Environment, please set aslive
#
Download from Terra Console- At Terra Console homepage, click your product to enter its detail page
- At product page, select
Applications
on the left menu, then click your app to open it detail page. The list of version will be shown below.
- Click the version you want to download the config, then click
Download Config
button and save the file toassets
folder for android / project folder for iOS