Push Notification Personalization in Mobile App

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 1 servicesAll 1735 services
Push Notification Personalization in Mobile App
Medium
~2-3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1054
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Setting Up Push Notification Personalization in Mobile Apps

A notification "Hi, {{name}}!" — that's not personalization. Real personalization is when the user gets a message about a discount on exactly the product category they browsed three days ago, at the time of day they usually open the app. Let's break down how this is implemented technically.

Dynamic Variables in Payload

Any serious platform — OneSignal, Braze, CleverTap, Firebase + custom backend — supports templates with variables. The server-side renders the final text before sending.

In OneSignal this looks like at API level:

{
  "app_id": "YOUR_APP_ID",
  "include_aliases": { "external_id": ["user_88234"] },
  "headings": { "ru": "{{first_name}}, ваш избранный товар подешевел" },
  "contents": { "ru": "{{product_name}} теперь стоит {{new_price}} ₴ — на {{discount_percent}}% меньше" },
  "data": { "product_id": "{{product_id}}", "screen": "product_detail" }
}

Variable values are taken from user tags in OneSignal or passed in substitutions when sending via API. The first_name tag must be set in advance on the client:

OneSignal.User.addTag("first_name", user.firstName)
OneSignal.User.addTag("preferred_category", user.topCategory)

Personalization Based on Behavior

This is more complex — requires an analytics layer on the backend. Typical flow:

  1. Client logs events (product view, wishlist add, category).
  2. Backend or ML-service forms recommendations for the user.
  3. When sending notification, payload is enriched with recommended content.

If you don't have your own recommendation engine — you can use Firebase Personalization (ML-based optimization of A/B test content) or Braze Recommendations, which build a model based on SDK event history.

// Log behavior through Firebase Analytics
firebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM) {
    param(FirebaseAnalytics.Param.ITEM_ID, product.id)
    param(FirebaseAnalytics.Param.ITEM_CATEGORY, product.category)
    param(FirebaseAnalytics.Param.PRICE, product.price)
}

Optimal Send Time (Intelligent Delivery)

OneSignal Intelligent Delivery and Braze Optimal Time track activity patterns for each user and delay delivery to the period of highest likelihood of opening. For one user it's 8 AM, for another — 11 PM.

Enabled with one parameter when sending:

{
  "delayed_option": "last-active",
  "delivery_time_of_day": "9:00AM"
}

last-active — deliver at the same time of day when the user was last active. This is not ML, but already better than batch sends at one time for everyone.

More precise option in OneSignal — intelligent_delivery: true. The platform itself chooses the window based on the specific user's open rate history.

A/B Testing

Without A/B, you can't claim that personalization works. OneSignal supports A/B tests natively:

{
  "name": "price_drop_ab_test",
  "messages": [
    {
      "variant_id": "A",
      "contents": { "ru": "{{product_name}} подешевел на {{discount}}%" },
      "weight": 50
    },
    {
      "variant_id": "B",
      "contents": { "ru": "Скидка {{discount}}% на товар из вашего вишлиста" },
      "weight": 50
    }
  ]
}

After the test completes, OneSignal shows CTR for each variant. The winning variant is implemented in the template.

Tracking Conversions

Notification CTR is an intermediate metric. More important — did the user actually complete the action? For this, you need outcome events:

// In the notification open handler
OneSignal.Notifications.addClickListener { event ->
    val productId = event.notification.additionalData?.getString("product_id")
    // User navigated to product
    OneSignal.Session.addOutcome("notification_click_to_product")
}

// After purchase completion (elsewhere in code)
OneSignal.Session.addOutcomeWithValue("purchase_from_notification", orderValue.toFloat())

This links the conversion to the specific notification even if several minutes pass between the click and purchase.

Timeframe

Implementing dynamic variables and templates, setting up Intelligent Delivery, integrating outcome events and basic A/B testing — 6–10 working days. If your own recommendation layer on backend or integration with external ML system is required — timelines are discussed separately.