flutter - how to open mail/sms apps
528
I'm not sure if you can do that in iOS but for Android, use android_intent
plugin and put the appropriate package_name in data
.
if (platform.isAndroid) {
AndroidIntent intent = AndroidIntent(
action: 'action_view',
data: 'package:com.example.app',
);
await intent.launch();
}
Author by
thanhbinh84
Senior Mobile Developer - with Flutter, iOS, Android and cross-platforms experiences
Updated on December 20, 2022Comments
-
thanhbinh84 over 1 year
url_launcher helps to draft an email, make a call and send a sms to a specific recipient. Is there any way to launch mail/sms apps (inbox - not draft) ?
-
thanhbinh84 almost 4 yearsI haven't tried yet since I need both Android & iOS solution.
-
iDecode almost 4 yearsOk, but you can't do anything like that in iOS.
-