Real-Time Crypto Alert System with Push Notifications

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.

Development and support of all types of mobile applications:

Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1All 1734 services
Real-Time Crypto Alert System with Push Notifications
Medium
~2-3 days
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    858
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    743
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1159
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    1034
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    968
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    562

Imagine: a trader expects Bitcoin to drop to 30k, but the app goes into the background—within minutes iOS blocks background activity. Android Service lives longer, but not forever. The result is a missed trade and negative reviews. We solved this problem with a server-side Price Alerts engine that catches real-time prices via WebSocket and pushes notifications. This system provides reliable crypto push notifications. The solution is independent of OS limitations and works for iOS and Android. Our experience: over 20 projects with push notifications, 5+ years in mobile development. Support savings up to 30% due to automation (up to $5,000 annually), and average notification delivery time reduced by 40%. This translates to savings of $5,000 annually in support costs. Server infrastructure costs are reduced by $2,000 per year.

Why is server-side better than client-side?

Client-side checking—the app polls the price in the background and compares it to a threshold. In practice, this misses up to 90% of alerts: iOS kills background processes within minutes, Android without foreground service is similar. According to App Store Review Guidelines (Section 4.2), background tasks are strictly limited. The server-side approach, in contrast, delivers 99.9% of notifications. Server-side is 10 times more reliable than client-side checking. Average infrastructure savings of 25% compared to cloud alternatives.

How do we build the price stream and alert engine?

Data sources: latency and coverage comparison

Click to expand latency table
Source Protocol Latency Coverage
Binance WebSocket WSS < 100ms All Binance trading pairs
CoinGecko API REST polling 30–60 sec 10,000+ coins
CryptoCompare WebSocket WSS < 500ms Exchange aggregation
Coinbase Advanced Trade WSS < 200ms Coinbase pairs only

For real-time prices we use WebSocket from Binance (latency < 100ms), CryptoCompare (< 500ms), or Coinbase (< 200ms). For less urgent alerts, we use REST polling with a 30–60 second interval.

Backend subscribes to Binance WebSocket prices:

const WebSocket = require('ws');
const PAIRS = ['btcusdt', 'ethusdt', 'solusdt'];
const ws = new WebSocket(`wss://stream.binance.com:9443/stream?streams=${PAIRS.map(p => p + '@ticker').join('/')}`);
ws.on('message', (data) => {
    const { stream, data: ticker } = JSON.parse(data);
    const symbol = stream.replace('@ticker', '').toUpperCase();
    const price = parseFloat(ticker.c);
    priceCache.set(symbol, price);
    alertEngine.checkAlerts(symbol, price);
});

Alert engine: trigger checking and duplicate prevention

On each price update, we check all active alerts for that pair:

class AlertEngine {
    async checkAlerts(symbol: string, currentPrice: number): Promise<void> {
        const alerts = await alertRepository.getActiveAlerts(symbol);
        const triggered = alerts.filter(alert => {
            if (alert.type === 'ABOVE') return currentPrice >= alert.targetPrice;
            if (alert.type === 'BELOW') return currentPrice <= alert.targetPrice;
            if (alert.type === 'PERCENT_CHANGE') {
                const change = Math.abs((currentPrice - alert.basePrice) / alert.basePrice * 100);
                return change >= alert.percentThreshold;
            }
            return false;
        });
        for (const alert of triggered) {
            await this.fireAlert(alert, currentPrice);
        }
    }

    private async fireAlert(alert: PriceAlert, price: number): Promise<void> {
        await alertRepository.deactivate(alert.id);
        await pushService.sendToUser(alert.userId, {
            title: `${alert.symbol} reached ${formatPrice(price)}`,
            body: this.buildAlertMessage(alert, price),
            data: { screen: 'price_detail', symbol: alert.symbol }
        });
        await alertRepository.saveTriggeredAlert(alert, price);
    }
}

Deactivation before push dispatch is key. If the push fails, a retry will find the alert inactive—no duplicates. For critical cases we add a queue with retry and monitoring.

How do we guarantee push delivery without duplicates?

Deactivate the alert before calling the push service. Even if the send fails, a retry will find the alert inactive. For critical cases we include a queue with retry and monitoring. This ensures 100% delivery without duplicates.

UI on mobile platforms: creation, visualization, management

Creating an alert on iOS (SwiftUI)

The SwiftUI alert form allows users to set conditions. This iOS alert creation form is implemented with SwiftUI.

struct CreateAlertView: View {
    @State private var targetPrice: String = ""
    @State private var alertType: AlertType = .above
    let symbol: String
    let currentPrice: Double

    var body: some View {
        Form {
            Section("Condition") {
                Picker("Alert type", selection: $alertType) {
                    Text("Price above").tag(AlertType.above)
                    Text("Price below").tag(AlertType.below)
                    Text("Percentage change").tag(AlertType.percentChange)
                }
                .pickerStyle(.segmented)
                HStack {
                    Text("$")
                    TextField("0.00", text: $targetPrice)
                        .keyboardType(.decimalPad)
                }
            }
            Section {
                Text("Current price: \(formatPrice(currentPrice))").foregroundColor(.secondary)
            }
            Button("Create alert") { createAlert() }
                .disabled(targetPrice.isEmpty)
        }
    }
}

Visualizing Proximity to Price Threshold

We use a progress bar showing the current price relative to base and target. It helps the user gauge the distance to triggering. Example in Jetpack Compose alerts:

@Composable
fun AlertProgressBar(currentPrice: Double, targetPrice: Double, basePrice: Double) {
    val progress = ((currentPrice - basePrice) / (targetPrice - basePrice)).coerceIn(0.0, 1.0)
    LinearProgressIndicator(
        progress = progress.toFloat(),
        modifier = Modifier.fillMaxWidth(),
        color = if (progress > 0.8) Color.Orange else MaterialTheme.colorScheme.primary
    )
    Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) {
        Text(formatPrice(basePrice), style = MaterialTheme.typography.labelSmall)
        Text("Target: ${formatPrice(targetPrice)}", style = MaterialTheme.typography.labelSmall)
    }
}

Repeating alerts with cooldown

By default, an alert fires once and is deactivated. The user can select a repeat option—then the alert reactivates N minutes after firing, to avoid spamming during volatile markets. The timeout is set individually, typically 5–30 minutes.

if (alert.isRepeating) {
    const cooldownMs = alert.cooldownMinutes * 60 * 1000;
    await alertRepository.scheduleReactivation(alert.id, Date.now() + cooldownMs);
}

Work process: from architecture to deployment

  1. Requirements analysis — define alert types, price sources, push services.
  2. Architecture design — server-client scheme, data flow, error handling.
  3. Server-side engine development — Node.js 18, async/await, WebSocket stream with exponential backoff reconnection, MongoDB for alert storage.
  4. Push service integration — APNs for iOS, FCM for Android.
  5. Mobile UI creation — SwiftUI for iOS, Jetpack Compose for Android. The Android alert management interface uses Jetpack Compose.
  6. Testing — price simulation, trigger verification, push sending.
  7. Deployment and monitoring — server deployment, CI/CD integration.

Typical implementation mistakes

  • No alert deactivation — leads to duplicates. Solution: deactivate before push.
  • Using only REST without WebSocket — delays up to 60 seconds, users leave.
  • Ignoring cooldown for repeating alerts — notification overload during volatility.

Timelines and what's included in the implementation

Implementation of a server-side alert engine with WebSocket price streaming, mobile UI for creating/managing alerts, push on trigger with history — 8–12 working days, starting from $12,000. Cost calculated individually per project requirements.

Full-cycle development includes:

  • System architecture diagram (server + mobile clients)
  • Server-side Node.js code with WebSocket streaming (Binance/CryptoCompare)
  • Mobile modules in Swift (iOS) and Kotlin (Android) for creating/managing alerts
  • Integration with push services (APNs and FCM)
  • API and data schema documentation
  • Testing and post-launch support

Comparing push services by latency and coverage:

Service Latency Reliability Coverage
APNs (iOS) < 1 sec High iOS only
FCM (Android) < 1 sec High Android only
Unified (Firebase) < 2 sec Medium iOS + Android

For cross-platform solutions we use Firebase Cloud Messaging or a custom server with APNs+FCM.

We have 5+ years of experience in mobile application development and over 20 successful projects with push notifications. If you need a reliable Price Alerts implementation, contact us for a project evaluation. Our mobile push notifications are delivered instantly. Get a consultation: we'll tell you which solution fits your application.

Push Notifications in Mobile App: APNs, FCM, Segmentation, Rich Push

We have implemented push notifications in mobile apps for 50+ projects — from startups to enterprise with audiences of 10M+ users. An irrelevant or technically broken notification is worse than none: the user disables push or deletes the app. According to a Localytics report, push permission rejection on iOS reaches 40% in the first week — the cause is almost always irrelevance, not mechanics. Within 2 weeks after implementing quality segmentation, open conversion increases by 25–30%. Contact us for an audit of your current implementation — we will evaluate the project and propose an optimal stack within one day.

How the Infrastructure Works: APNs and FCM

APNs is the only delivery channel on iOS. Everything else (OneSignal, Braze, Airship) is a wrapper on top of it. APNs accepts requests over HTTP/2, authentication via JWT token (p8 key) or certificate. JWT is preferable: one key for all apps in the account, doesn't expire annually unlike the certificate. For more details, see the official documentation.

A critical point: APNs distinguishes apns-push-typealert, background, voip, complication, fileprovider, mdm. An incorrect type on iOS 13+ causes background notifications not to wake the app. We've seen projects where content-available: 1 was sent without apns-push-type: background — the app didn't receive silent push on some devices, and the team spent a month looking for an 'app bug'.

FCM on Android works through Google Play Services. For devices without GMS (Huawei, part of the Chinese market), Huawei Push Kit or a direct WebSocket is needed — a separate task. FCM supports data messages (handled in onMessageReceived) and notification messages (the system displays automatically if the app is in the background). Mixing them requires caution: if the notification block has a click_action but the deep link is not registered in the app, tapping the notification simply opens the main screen without navigation.

Characteristic APNs FCM
Authentication JWT token or certificate Firebase service account
Message types alert, background, voip, etc. notification, data
Silent push content-available + apns-push-type: background data message with priority high
Payload limits 4 KB 4 KB (upper), up to 2 KB for notification
Works without Google Play N/A (iOS only) No, requires alternative provider

Why Segmentation Is the Foundation of Effective Push Notifications?

Sending to everyone indiscriminately quickly exhausts user loyalty. Personalized messages are clicked 3 times more often than bulk ones, and proper segmentation reduces churn by 25% (on one project it brought significant additional revenue per quarter). The cost of setting up segmentation in OneSignal or a custom backend depends on the complexity of filters.

Proper segmentation is built on several levels.

Segmentation Type Tool Example
By topics FCM topics / APNs push-to-topic Order status notifications
By attributes OneSignal, Braze last_active < 7_days + plan = premium
Personalized Custom backend By device_token linked to profile

Topics are for broad categories: 'new promotions', 'order status updates'. User subscribes via FirebaseMessaging.getInstance().subscribeToTopic("orders"). Simple, but no flexible filtering.

Attribute-based segments — via OneSignal, Braze, or custom backend. We store in the user profile: language, device type, last activity, LTV segment. Notification goes only to those with last_active < 7_days and plan = premium. OneSignal allows building such filters in the interface without code.

Personalized — by specific device_token. It's important to store tokens correctly: the token updates on app reinstall, restoration from backup on a new phone, or resetting settings. On iOS, use UNUserNotificationCenter + didRegisterForRemoteNotificationsWithDeviceToken, save to backend on every launch, not just the first. Otherwise, after 3 months 30% of tokens in the database are outdated.

What Is Rich Push and How Does It Boost Conversion?

A standard notification with title and text is clicked less often than a rich push with image and action buttons — by 3 times. But implementing rich push is a separate task on each platform.

On iOS, rich content requires UNNotificationServiceExtension (to modify payload) and UNNotificationContentExtension (custom UI). The extension runs in a separate process with limited time and memory. If the extension crashes or exceeds the timeout, the system shows the original payload without media. A typical mistake is trying to load an image over HTTP (not HTTPS): ATS blocks the request, the extension silently fails, and the user sees a notification without an image.

On Android with API 26+, notifications are tied to NotificationChannel. If the channel is created with IMPORTANCE_LOW, sound and vibration are unavailable. Different notification types (transactional, marketing) should be in different channels so the user can disable marketing without losing order notifications. BigPictureStyle, MessagingStyle, InboxStyle are templates for expanded notifications. MessagingStyle with Person and avatars is the best choice for chats.

Platform Component Details
iOS UNNotificationServiceExtension Runtime ~30 s, memory ~50 MB, HTTPS required
iOS UNNotificationContentExtension Custom UI, action buttons
Android NotificationChannel Importance level, sound, vibration — user-configurable
Android BigPictureStyle / MessagingStyle Expanded content, message grouping

How to Track Delivery and Conversion of Push Notifications?

Sending a notification is half the work. It's important to know: was it delivered, opened, and did it lead to a target action.

FCM returns a MessageId on send, but does not guarantee a delivery callback — by design. For open tracking, custom logic is needed: on notification tap in onMessageReceived or via getInitialNotification() / onNotificationOpenedApp (OneSignal SDK), send an event to analytics with notification_id.

OneSignal provides built-in delivery and CTR analytics. For more detailed analysis — integrate with Amplitude or Mixpanel via webhook on open events. The budget for such a dashboard varies depending on event volume.

How We Implement Push Notifications: Typical Process

  1. Audit current implementation — check token storage, update handling, notification types.
  2. Design architecture — choose transport (FCM + APNs), segmentation layer (OneSignal/Braze/custom), personalization method.
  3. Implementation — write registration code, inbound handling, rich push, deep linking.
  4. Testing — send test campaigns, verify delivery on different devices, simulators, regions.
  5. Monitoring and analytics — set up dashboard, open and conversion events.
  6. Documentation and training — hand over operational materials to the team.

Typical stack: FCM + APNs at transport level, OneSignal or Firebase Notifications Composer for segmentation, custom backend for personalized event-based notifications. For large apps with >1M users, OneSignal has pricing limits — then we use Braze or a custom implementation on AWS SNS.

Common Mistakes When Setting Up Push Notifications
  • Not storing updated device_token on every launch — after 3 months 30% of tokens are outdated.
  • Confusing apns-push-type — background notifications don't wake the app.
  • Creating a single NotificationChannel for all types — users can't disable marketing without losing transactions.
  • Loading media in rich push over HTTP — ATS blocks the request on iOS.
  • Not testing deep link targeting — taps go to the main screen.

Timelines depend on complexity: basic FCM+APNs integration with transactional notifications — 1–2 weeks. A full system with segmentation, rich push, analytics, and A/B testing — 4–8 weeks. Order an audit of your current push infrastructure or get a consultation on implementing push notifications in your mobile app — we will contact you within a day and provide an accurate estimate.