Skip to content
pubscout

receive_whatsapp_chat

0.1.9, released 8 weeks ago by dfranko.com

Receive and parse exported WhatsApp chats shared from the WhatsApp app.

$ flutter pub add receive_whatsapp_chat
Source repository

What it does

Enables Flutter apps to receive exported chat files shared from WhatsApp on Android and iOS. It automatically parses the chat file into members, messages, timestamps, and statistics.

AI-written summary of version 0.1.9, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building an app that needs to analyze WhatsApp chats
  • You want users to be able to export a chat from WhatsApp and open it directly in your app

Skip it when

  • You need real-time messaging integration via the WhatsApp API
  • You only need general file sharing without specific WhatsApp chat parsing

Strengths

  • Automatically parses chat files into structured objects (members, messages, stats)
  • Supports both Android and iOS platforms
  • Provides helper mixin for widgets to easily receive shared chats

Weaknesses

  • Requires platform-specific setup on both Android (modifying MainActivity) and iOS (Share Extension and App Groups)
  • Works best with chats exported in English

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
4

Android requires changing MainActivity to extend FlutterShareReceiverActivity. iOS requires creating a Share Extension, configuring App Groups, updating Info.plist files, and modifying the Podfile.

class _HomePageState extends ReceiveWhatsappChat<HomePage> {
  final List<ChatContent> chats = [];

  @override
  void receiveChatContent(ChatContent chatContent) {
    setState(() => chats.add(chatContent));
  }

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: [
        for (final chat in chats)
          ListTile(
            title: Text(chat.chatName),
            subtitle: Text('${chat.sizeOfChat} messages'),
          ),
      ],
    );
  }
}

Alternatives

Packages that do the same job and could replace receive_whatsapp_chat.

Works with

Packages commonly used together with receive_whatsapp_chat: ones it builds on, ones built on it, and its own family.