I have two applications. customer app and vendor app. How to open vendor app from customer app when click button ?
Is it possible to open another application from the Flutter app?
com.demo.customer
and com.demo.vendor
I tried url_launcher
. but It cannot give package name and open another application.
And also I tried this package, device_apps but not working for ios.
Should be work on Android and ios.
You need to register a custom url scheme for the app you want to open.
You can read more here:
For iOS: iOS Documentation
For Android: Android Documentation
There's also a nice plugin that can handle deeplink actions for Flutter.
When you have registered a custom url scheme (for example: demo://vendor) you can just call that url with url_launcher plugin:
launchUrl('demo://vendor')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.