Setup API Key with Android
Kotlin
// set your api key and api secret.
IAGSManager.getInstance(this).setApiKey("SET YOUR API KEY HERE", "SET YOUR SECRET KEY HERE")
Java
// set your api key and api secret.
IAGSManager.Companion.getInstance(this).setApiKey("SET YOUR API KEY HERE", "SET YOUR SECRET KEY HERE");
Alternative you can add api key IAGSApiKey
and api secret IAGSSecretKey
to metadata in your application manifests.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.indooratlas.groundsage.sdk.example">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity>
...
</activity>
<meta-data android:name="IAGSApiKey" android:value="SET YOUR API KEY HERE"/>
<meta-data android:name="IAGSSecretKey" android:value="SET YOUR SECRET KEY HERE"/>
</application>
</manifest>