2
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

Rahul Variya
  • 1,257
  • 1
  • 6
  • 15
Frankline Sable
  • 316
  • 2
  • 9

2 Answers2

2

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

Rahul Variya
  • 1,257
  • 1
  • 6
  • 15
1

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');
Jinto Joseph
  • 947
  • 6
  • 23