skip to Main Content

Flutter iOS build fails with "UIApplication does not conform to protocol 'Launcher'" error in url_launcher_ios

I'm getting a build error when trying to run my Flutter app on iOS simulator. The error seems to be related to the url_launcher_ios plugin. Error Message: /Users/user/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.4/ios/Classes/Launcher.swift:20:1: error: type 'UIApplication' does not conform to protocol 'Launcher' extension UIApplication: Launcher…

VIEW QUESTION

Launch Whatsapp Business from Flutter

I am trying to launch WhatsApp Business app using Flutter and have written below code: whatsAppBusiness(phone) { print(phone); return launchUrl( Uri.parse( 'whatsapp-business://send?phone=$phone', // 'https://api.whatsapp.com/$phone', //put your number here ), ); } but it is not getting launched.

VIEW QUESTION
Back To Top
Search