I used this code to redirect to whatsapp app, but its only works in debugging mode, when i download my app from play store deosnt work
onTap: () async {
var whatsappApp = Uri.parse("whatsapp://send?phone=$contactusWhatsapp&text=hello");
if (await canLaunchUrl(whatsappApp)) {
await launchUrl(whatsappApp);
} else {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text("WhatsApp is not installed on the device"),
),
);
}
},