a dialog after pressing a phone number that gives the option to open it with WhatsApp or WhatsApp Business.
I tried using
dart
const whatsappBusinessScheme = 'whatsapp://send?phone=';
const whatsappScheme = 'https://wa.me/';
But the result is terrible because it opens a page in the browser on api.whatsapp.com, and only after that does it display the dialog where you can only set normal WhatsApp as "always" and not the Business version.
This is very uncomfortable for the user.
It seems like it's impossible to achieve this, but I've seen this behavior in other apps, although maybe they weren't built with Flutter.
seems like it's an impossible problem to solve in flutter
Last month I implemented one. It worked. Use try-catch instead of canLaunch
it's my second week ever in flutter, I was parachuted into a codebase I don't know with a language I don't know to make some small changes 😅 i'll try that with try-catch. have you any guide to do it pls?
Can you share the current snippet
https://stagb.in/8dz8q2p
Обсуждают сегодня