WhatsApp Business API Integration into 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
WhatsApp Business API Integration into Mobile App
Medium
~3-5 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

WhatsApp Business API Integration in Mobile Application

WhatsApp Business API — not WhatsApp Business App on phone. Cloud API (hosted by Meta) or On-Premises for businesses with verified account wanting to send notifications, conduct conversations, automate communication via WhatsApp. All integration — server-side, mobile app acts as management interface.

WhatsApp Cloud API Architecture

Meta transitioned to Cloud API in 2022 — hosted solution without On-Premises instance. Message send:

POST https://graph.facebook.com/v19.0/{PHONE_NUMBER_ID}/messages
Authorization: Bearer {ACCESS_TOKEN}
Content-Type: application/json

{
  "messaging_product": "whatsapp",
  "to": "380991234567",
  "type": "template",
  "template": {
    "name": "order_shipped",
    "language": { "code": "ru" },
    "components": [
      {
        "type": "body",
        "parameters": [
          { "type": "text", "text": "Ivan" },
          { "type": "text", "text": "#98765" },
          { "type": "text", "text": "today 2:00 PM – 6:00 PM" }
        ]
      }
    ]
  }
}

Templates (template) — mandatory for initial outbound. Freeform text sendable only within 24 hours of last user message (customer service window). Each template must be Meta-approved — usually 1–3 workdays.

Template Categories and Restrictions

Category Examples Marketing Limits
UTILITY Order status, OTP, payment reminder None
AUTHENTICATION Verification code Strict format
MARKETING Promotions, offers Explicit opt-in required

Marketing templates require explicit opt-in — user must consent to marketing via WhatsApp. Send without opt-in violates Meta policy, account block risk.

Webhooks: Inbound Messages and Statuses

Webhooks configured in Meta Developer Console. Backend receives POST on endpoint:

// Incoming message from user
{
  "entry": [{
    "changes": [{
      "value": {
        "messages": [{
          "from": "380991234567",
          "type": "text",
          "text": { "body": "When's delivery?" },
          "timestamp": "1711440000"
        }]
      }
    }]
  }]
}
// Outbound message delivery status
{
  "statuses": [{
    "id": "wamid.XXXXX",
    "status": "delivered",
    "timestamp": "1711440060",
    "recipient_id": "380991234567"
  }]
}

Important: webhook endpoint must verify via Meta (GET with hub.challenge) and handle POST in < 5 seconds — otherwise Meta retries, eventually disables webhook.

Mobile Part: Dialog Interface

Mobile app here — operator or admin interface:

// iOS — load conversation history
struct WhatsAppConversation: Identifiable, Decodable {
    let id: String
    let contactPhone: String
    let contactName: String?
    let lastMessage: WhatsAppMessage
    let unreadCount: Int
    let windowExpiresAt: Date? // 24-hour window
}

// Display window status
var isWithinServiceWindow: Bool {
    guard let expires = windowExpiresAt else { return false }
    return Date() < expires
}

If isWithinServiceWindow == false — show warning, can't send arbitrary message, suggest template selection.

Business Account Verification

WhatsApp Business API requires verified Business Manager at Meta. Process: create Meta Business Manager → verify business (documents) → create WhatsApp Business Account → get phone. Can't use same number in WhatsApp Business App — API only.

Verification days to weeks. Blocking stage — develop parallel in test mode (sandbox with limited numbers).

Timeline

WhatsApp Cloud API integration, template creation and registration, webhook handler, mobile dialog UI with service window support — 8–12 workdays (not including Meta account verification time).