Skip to content

KoalaSat/pokey

Repository files navigation

Pokey

GitHub downloads release MIT

Display live notifications for your nostr events and allow other apps to receive and interact with them.

Description of Image

Getting Started

What is Nostr: https://www.nostr.how

Features

  • Finish POC
  • Connect with Amber
  • Broadcast to other apps
  • Auth to relays
  • Use built-in Tor engine
  • Multi-account
  • InBox Relays management
  • Granulated notification settings
  • Mute button and mute lists
  • Last 20 notifications view
  • Custom emojis
  • Search term notification

Receiving user's inbox events on your app

  1. Register the intent filter in the AndroidManifest.xml file:
<receiver android:name=".MyBroadcastReceiver">
    <intent-filter>
        <action android:name="com.shared.NOSTR" />
    </intent-filter>
</receiver>
  1. Register receiver in your Service or Activity:
override fun onStart() {
    super.onStart()
    val filter = IntentFilter("com.shared.NOSTR")
    registerReceiver(myBroadcastReceiver, filter)
}

override fun onStop() {
    super.onStop()
    unregisterReceiver(myBroadcastReceiver)
}

Kudos