The android library checks for the application id that matches the application id on the server
Support from SDK version 14 onwards
{ "data":[
{"package":"com.blogspot.hu2di.test1"},
{"package":"com.blogspot.hu2di.test2"},
{"package":"com.blogspot.hu2di.test3"}
]}
JitPack:
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.hu2di:CheckAppID:1.0.3'
}
Add in your activity to check every application is opened
new CheckAppID(this,
"https://yourServer/yourFile.json",
//Ex: https://raw.githubusercontent.com/hu2di/CheckAppID/master/Server/CheckAppIds.json
"your-email@gmail.com")
.execute();
Add in your activity to check every day once
new CheckAppID(this,
"https://yourServer/yourFile.json",
//Ex: https://raw.githubusercontent.com/hu2di/CheckAppID/master/Server/CheckAppIds.json
"your-email@gmail.com")
.executeDayByDay();
- Created by HuyHung Dinh
- GitHub: https://github.com/hu2di
- Email: hebitaxy@gmail.com