Simple application for developers, demonstrating Kontakt.io Android SDK features and sample implementations.
- iBeacon and Eddystone scanning
- Secure Profile scanning
- Applying regions and namespaces
- Applying scanning filters
- Background scanning (including ScanFilters required for scanning with the screen off after Android 8)
- Beacon's Configuration
- Reading Beacon's Pro light sensor
- Consuming REST API with KontaktCloud
- Consuming REST API with KontaktCloud using coroutines
- Clone or download this repository.
- Open project in Android Studio (select top
build.gradle
file when opening the project). - Install any missing dependencies that Android Studio might ask you for.
- Remember to put your API key in
KontaktSDK.initialize()
method located inApp.java
file:
public class App extends Application {
// TODO Put your API key here
public static final String API_KEY = "Your_Api_Key";
@Override
public void onCreate() {
super.onCreate();
initializeDependencies();
}
//Initializing Kontakt SDK. Insert your API key to allow all samples to work correctly
private void initializeDependencies() {
KontaktSDK.initialize(API_KEY);
}
}
Run the application to see if everything is set up correctly.
For full information see: https://kontakt-api-docs.stoplight.io/docs/dev-ctr-sdks/ZG9jOjMwMzg3NjUz-getting-started
NOTE: The old, deprecated samples app is available in the archive branch (if you require it for any reason).