Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/datalux/notification-sniffer

An Android Library that implements a Notification Sniffer
https://github.com/datalux/notification-sniffer

android android-library notifications security sniffing

Last synced: 12 days ago
JSON representation

An Android Library that implements a Notification Sniffer

Awesome Lists containing this project

README

        

# notification-sniffer
An Android Library that implements a Notification Sniffer

## Gradle Dependency
- gradle project level
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
- gradle application level
```gradle
dependencies {
implementation 'com.github.Datalux:notification-sniffer:0.1'
}
```


## Example

```kotlin
if(!NotificationSniffer.checkForPermission(this))
NotificationSniffer.askForPermission(this)

NotificationSniffer.startSniffing(this)

NotificationSniffer.listener = object : SniffListener {
override fun onResult(extractedNotification: ExtractedNotification) {
Log.d("onMain", extractedNotification.toString())
}
}
```