Member-only story
Launch WhatsApp and send messages using Flutter App
While using WhatsApp you might have observed that to send a message to any person you first need to save the phone number and then only we are able to send the message to that person, this is a bit tedious task to do. So to solve this problem we can learn to build a flutter app that can help us directly navigate to the WhatsApp messaging screen without even saving the phone number. So let’s start.
Hi Flutter developers, In this blog, we shall learn about how we can open WhatsApp and send messages to any phone number without saving the phone number.
To implement this functionality we will use the URL launcher package.
Link:
Install the package to your flutter app:
Edit your dependencies in your pubspec.yaml file:
url_launcher: ^6.0.20
Add the following line into your dart file:
import 'package:url_launcher/url_launcher.dart';