Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the url_launcher package to just open the default mail app, without having to to compose [closed]

await launchUrl(Uri.parse("mailto:"));

Takes me to compose, I just want to open the mail app.

I expected to open the mail app, but it's not working, please suggest any package or lib for it

like image 823
Frankline Sable Avatar asked Oct 17 '25 14:10

Frankline Sable


2 Answers

You can use like below :

launch("https://mail.google.com/mail/u/0/#inbox")

Or you can use this package:

https://pub.dev/packages/external_app_launcher

like image 93
Rahul Variya Avatar answered Oct 19 '25 05:10

Rahul Variya


this will help you to open app device_apps 2.2.0

link : https://pub.dev/packages/device_apps

call this code using package name

DeviceApps.openApp('com.google.android.gm');
like image 23
Jinto Joseph Avatar answered Oct 19 '25 04:10

Jinto Joseph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!