Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datadome/datadome-android-sdk-sample
DataDome Kotlin SDK Sample
https://github.com/datadome/datadome-android-sdk-sample
android demo poc sdk
Last synced: 5 days ago
JSON representation
DataDome Kotlin SDK Sample
- Host: GitHub
- URL: https://github.com/datadome/datadome-android-sdk-sample
- Owner: DataDome
- License: mit
- Created: 2022-03-25T11:18:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-28T10:07:06.000Z (about 1 year ago)
- Last Synced: 2023-09-28T12:07:34.287Z (about 1 year ago)
- Topics: android, demo, poc, sdk
- Language: Kotlin
- Homepage:
- Size: 161 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AndroidSDK-Example
[![Version Badge](https://api.bintray.com/packages/datadome-org/datadome/datadome-android-sdk/images/download.svg)](https://datadome.co/)
![MIT](https://img.shields.io/cocoapods/l/DataDomeSDK)This sample show how to use __DataDomeSDK__ with the OKHTTP Interceptor and manual integration (:warning:).
## Usage
It is possible test the integration thanks to the multiple buttons.
##### User Agent
You can change UserAgent between:
- __*ALLOWUA*__ : A basic UserAgent. Request will generally pass Datadome.
- __*BLOCKINGUA*__ : Request will be blocked each time by Datadome and a captcha will be shown.##### Multiple requests
If the switch is enabled, the request button will execute 5 requests and not only 1.##### Cache
It is possible to clear cache for triggering captcha again if you want to.#### Back Button Behaviour
It is possible to set a custom behaviour for the back action on captcha page:
- __*GO_BACKGROUND*__ : Make your app go background. Its the default and recommended one.
- __*GO_BACK*__ : Go back and cancel the call.
- __*BLOCKED*__ : Back button make nothing.##### Customization
You can customize endpoint in `config.properties` file.
You can customize UserAgents directly in the activity.
Finally, it is possible to change datadome sdk key in the `build.gradle` file of the app.## Documentation
__Documentation__ can be found here:
*https://docs.datadome.co/docs/sdk-android*__Changelog__ can be found here:
*https://docs.datadome.co/docs/android-sdk-changelog*