SatisMeter is mobile and web platform for collecting customer feedback, based on Net Promoter Score. This package contains a survey widget that can be easily integrated into any Android application.
- Min Android SDK version: 16+
SatisMeter is available through mavenCentral()
Installation via Gradle
Open the build.gradle
file of your app and find the dependencies block. Add the following line:
implementation 'com.satismeter:satismeter:1.5.1'
First of all you should create your account in https://satismeter.com
Add the following code to the onCreate
method in your activity
:
Java
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
HashMap<String, Object> traits = new HashMap();
traits.put("name", "James HetfieldX");
traits.put("email", "[email protected]");
traits.put("createdAt", "1963-08-03T00:00:00.000Z");
SatisMeter.identify(this, "WRITE_KEY", "USER_ID", traits);
}
}
Kotlin
package com.satismeter.sample
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.satismeter.SatisMeter
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_sample)
val traits = hashMapOf<String, Any>(
"name" to "ames HetfieldX",
"email" to "[email protected]",
"createdAt" to "1963-08-03T00:00:00.000Z"
)
SatisMeter.identify(this, "WRITE_KEY", "USER_ID", traits)
}
}
Replace the WRITE_KEY
with the one found in SatisMeter settings / Integrations / API Keys.
Replace USER_ID
with the ones of the currently logged-in user.
SatisMeter, https://satismeter.com
satismeter-android SDK is available under the MIT license. See the LICENSE file for more info.