Giter Club home page Giter Club logo

satismeter-android's Introduction

SatisMeter Android SDK

License

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.

Requirements

  • Min Android SDK version: 16+

Installation

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'

Usage

Registration

First of all you should create your account in https://satismeter.com

Identify user

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.

Author

SatisMeter, https://satismeter.com

License

satismeter-android SDK is available under the MIT license. See the LICENSE file for more info.

satismeter-android's People

Contributors

jsedlacek avatar man4ik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

satismeter-android's Issues

Source code?

I see no source code in the repository.
There's even a license declared but no content other than the readme file.
Are you planning to really open source it?

Error after sending feed and duplicite feedbacks

Hello every time after I try to send feedback I get this error:

E/SatisMeter: org.json.JSONException: End of input at character 0 of 
        at org.json.JSONTokener.syntaxError(JSONTokener.java:449)
        at org.json.JSONTokener.nextValue(JSONTokener.java:97)
        at org.json.JSONObject.<init>(JSONObject.java:159)
        at org.json.JSONObject.<init>(JSONObject.java:176)
        at com.satismeter.reqests.base.HttpRequestExecutor.onPostExecute(HttpRequestExecutor.java:84)
        at com.satismeter.reqests.base.HttpRequestExecutor.access$100(HttpRequestExecutor.java:16)
        at com.satismeter.reqests.base.HttpRequestExecutor$1.onPostExecute(HttpRequestExecutor.java:36)
        at com.satismeter.reqests.base.HttpRequestExecutor$1.onPostExecute(HttpRequestExecutor.java:30)
        at android.os.AsyncTask.finish(AsyncTask.java:695)
        at android.os.AsyncTask.access$600(AsyncTask.java:180)
        at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Also every time I click on cross after sending feedback, I see the feedback duplicitly 2 times in the web app.

Im using latest version com.satismeter:SatisMeter:1.1.3

Satismeter dialog disappears

Hi,

I'm trying your sdk, and I have a problem while displaying any dialog at the same time that satismeter nps is shown.

In that moment, your nps dialog disappears before the user being able to click any score.

Tested in android 9 and 10.

Migrate to AndroidX

I would like to disable jetifier in a near future since it will bring considerable build speed improvements in my project, but I found that the Satismeter SDK is one of the last libraries I am using, that still uses the old Android Support Libraries.

The steps to change to AndroidX are pretty straight forward
https://developer.android.com/jetpack/androidx/migrate

Satismeter Android SDK: 1.5.0

Changelog is missing 1.5.1

Hi, I think it's a typing error. In changelog you just missed 1.5.1, and I think 1.5.2 does not exist yet. Isn't it?

User score selection Callback

Hi, we need to know what the user has selected, is there any way to have a callback to know it?

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.