receive_whatsapp_chat
0.1.9, released 8 weeks ago by dfranko.com
Receive and parse exported WhatsApp chats shared from the WhatsApp app.
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.
- in_app_update
Triggers official Google Play In-App Updates on Android devices.
81Compare - listen_sharing_intent
Flutter plugin to receive shared photos, videos, text, URLs, or files from other apps.
57Compare
Works with
Packages commonly used together with receive_whatsapp_chat: ones it builds on, ones built on it, and its own family.
- path_providerreceive_whatsapp_chat depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- receive_sharing_intentreceive_whatsapp_chat depends on itReceives shared photos, videos, text, and files from other apps.
- flutter_archivereceive_whatsapp_chat depends on itCreate and extract ZIP archive files in Android, iOS and macOS.