Ad
How To Launch Messages App And Set The "To" Field (the Destination) With Default Email Address Programmatically In Flutter?
When the user taps on "contact us" button, I want to launch messages app in both Android and iOS and then set the destination with an already known email address in flutter. How can I do this? Impossible?
Ad
Answer
You can use url_launcher for opening url's which in your case would be the following:
final url = 'mailto:$mailAddress';
if (await canLaunch(url)) {
launch(url);
}
Ad
source: stackoverflow.com
Related Questions
- → should I choose reactjs+f7 or f7+vue.js?
- → Phonegap Android write to sd card
- → Local reference jquery script in nanohttpd (Android)
- → Click to navigate on mobile devices
- → How to allow api access to android or ios app only(laravel)?
- → Access the Camera and CameraRoll on Android using React Native?
- → React native change listening port
- → What is the default unit of style in React Native?
- → Google play market autocomplete icon
- → Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `ListView`
- → Using Laravel with Genymotion
- → react native using like web-based ajax function
- → react native pdf View
Ad