Pakete, Repositories und App-Kategorien suchen

Paketdetailsv4.0.1

whatsapp

Ein Flutter-Paket zur Integration mit der WhatsApp Business API. Senden Sie Nachrichten, Produkte, Medien und Standorte direkt aus Ihrer Flutter-App.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
196
Likes
212
Pub-Punkte
140

Paket installieren

flutter pub add whatsapp

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein Flutter-Paket, das die Integration mit der WhatsApp Business-API ermöglicht und Entwicklern erlaubt, Nachrichten, Produktkataloge, Mediendateien und Standortdaten direkt aus ihren Flutter-Anwendungen zu senden. Für nahtlose Kommunikation über Plattformen hinweg entwickelt, unterstützt es Android, iOS, Web, macOS, Windows und Linux. Das Paket vereinfacht das Senden von reichhaltigen Inhalten über WhatsApp und ist ideal für Kundenengagement, Bestätigungen von Bestellungen und automatisierte Benachrichtigungen. Es basiert auf der offiziellen WhatsApp Business-API und gewährleistet zuverlässige und sichere Nachrichtenübertragung.

Anwendungsfälle

  • Bestellbestätigungen senden
  • Automatisierte Kundenbenachrichtigungen
  • Produktkataloge teilen
  • Standortaktualisierungen senden
  • Medien-Dateien teilen
  • Kundensupport-Nachrichten

Hauptmerkmale

  • Unterstützt Nachrichtentypen einschließlich Text, Medien und Standorte
  • Integration mit der WhatsApp Business API
  • Plattformübergreifende Kompatibilität
  • Einfache Einrichtung mit Flutter pub
  • Echtzeit-Nachrichtenlieferung
  • Produktkatalogfreigabe

Geeignet für

  • E-Commerce-Apps
  • Kundenservice-Plattformen
  • Geschäfts-Kommunikationswerkzeuge
  • Automatisierte Benachrichtigungssysteme
  • Mobile Apps, die eine WhatsApp-Integration erfordern

Hinweise

  • Benötigt Zugriff auf die WhatsApp Business API
  • Erforderliche Authentifizierungseinstellung
  • Kann die Überprüfung eines Geschäftskontos erfordern
  • Geschwindigkeitsbegrenzungen gelten
  • Abhängig von einer stabilen Internetverbindung
  • Einhaltung der Richtlinien von WhatsApp

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

WhatsApp Flutter Banner

This Flutter package allows you to integrate the WhatsApp Business API into your Flutter applications. It enables sending messages, media, templates, managing business information, creating interactives and flows, sending catalog messages, and more. The package is updated to support the latest WhatsApp Business API v23.0.

Pub Likes Pub Points Pub Monthly Downloads GitHub Issues GitHub PRs GitHub Forks

Rohit Chouhan Sponsor


Documentation

Full documentation for the WhatsApp Flutter package is available at whatsapp-flutter.github.io.

You can switch the documentation version using the version selector at the top of the page (version:).

Other useful links:


New Features in v4

  • Performance Improvements – Optimized core methods, now up to 3x faster than previous versions.
  • Web Platform Support – Now supports fully compatibility with Flutter Web for most features.
  • Service-Specific Methods – Each service now provides dedicated getters for cleaner and more explicit usage.
  • Flow Messages – Added support for interactive flow messages to improve user engagement.
  • Catalog & Product Messages – Send product details and catalog messages for e-commerce use cases.
  • Resumable Uploads – Support for creating and managing resumable upload sessions for large files.
  • Error Handling Enhancements – Improved and added WhatsAppException handling with detailed error types.
  • Bug Fixes – Resolved multiple issues affecting stability and reliability.
  • API Upgrade – Updated to support WhatsApp Business API v23.0 (stable).

Basic Usage

// Access token provided by Meta for WhatsApp Cloud API
const accessToken = 'YOUR_ACCESS_TOKEN';

// Your WhatsApp Business phone number ID
const fromNumberId = 'YOUR_PHONE_NUMBER_ID';

// Create WhatsApp client instance
final whatsapp = WhatsApp(accessToken, fromNumberId);

try {
  // Send a simple text message
  var message = await whatsapp.sendMessage(
    phoneNumber: 'RECEIPT_NUMBER', // Recipient's phone number in international format
    text: 'Hi, how are you?',      // Message content
  );

  // Message sent successfully
  // Get and print the unique ID of the sent message
  print('Message ID: ${message.getMessageId()}');
  // Get and print the recipient number
  print('Message sent to: ${message.getContactId()}');
  // Get and print the full API response body
  print('API Response: ${message.getFullResponse()}');
} on WhatsAppException catch (e) {
  // Message failed to send
  // Print HTTP error code returned by the API
  print('HTTP Code: ${e.statusCode}');
  // Print exact error details from WhatsApp Cloud API
  print('API Error: ${e.message}');
  // Print type of request error (e.g., validation, authorization, etc.)
  print('Request Error: ${e.errorType}');
} catch (e) {
  print('Unexpected error: $e');
}

📌 Looking for a Better Example?

👉 Check out this working example here:
🔗 pub.dev WhatsApp Example

Contributors

chouhan-rahul

Have you found a bug or have a suggestion of how to enhance WhatsApp Package? Open an issue or pull request and we will take a look at it as soon as possible.

Report bugs or issues

You are welcome to open a ticket on github if any problems arise. New ideas are always welcome.

Copyright and License

Copyright © 2022 Rohit Chouhan. Licensed under the MIT LICENSE.

Kategorien

Abhängigkeiten

Abhängigkeiten 2 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.