Skip to content

TeodorGG/DinamicPopUp

Repository files navigation

DinamicPopUp2 — Banking Notification SDK

An Android SDK that delivers real-time push notifications to a banking app via WebSocket, displays them as an overlay dialog, and routes deep links to the host app.


Project Structure

DinamicPopUp2/
├── app/                    # Demo host application
├── notification-sdk/       # SDK module (builds to AAR)
└── backend/                # Local Node.js WebSocket server

Requirements

Tool Version
Android Studio Ladybug+
JDK 17
Kotlin 2.0.21
AGP 8.13.2
Node.js 18+
compileSdk 36
minSdk 28
targetSdk 36

1. Open the Project

Open the root DinamicPopUp2/ folder in Android Studio and wait for the Gradle sync to finish.


2. Start the Backend

Navigate to the backend/ folder, install dependencies with npm install, then start the server with npm start. The server runs on port 3000. Open http://localhost:3000 in a browser to access the admin UI for sending test notifications.


3. Connect the Emulator

Tested on the Android emulator only.

After starting the emulator, run adb reverse tcp:3000 tcp:3000 once to forward the port from the emulator to the host machine.


4. Run the Demo App

Select the app run configuration in Android Studio, choose an emulator (API 28+), and click Run. Use the admin UI at http://localhost:3000 to send a test notification to the app.


5. Build the AAR

Run ./gradlew :notification-sdk:assembleRelease from the project root. The output is placed in notification-sdk/build/outputs/aar/.


SDK API

Method Description
NotificationSdk.init(application, config) Initialize once in Application.onCreate()
NotificationSdk.start() Open WebSocket and start receiving notifications
NotificationSdk.stop() Disconnect WebSocket, stop receiving
NotificationSdk.release() Stop + clear ViewModel (call on app finish)

NotificationSdkConfig

Parameter Type Description
baseUrl String Base HTTP URL of the backend
onDeepLink (String) -> Unit Called when the user taps a notification CTA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors