Skip to content

Vishwa-Karthik/Flutter-URL-Launcher

Repository files navigation

URL LAUNCHER

A simple flutter example to open URL

Add Dependency

$flutter pub add url_launcher

Configuration on IOS

Add the following code inside info.plist

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>sms</string>
  <string>tel</string>
</array>

Configuration on Android

Add the following code inside AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />
<queries>
  <!-- If your app checks for SMS support -->
  <intent>
    <action android:name="android.intent.action.VIEW" />
    <data android:scheme="sms" />
  </intent>
  <!-- If your app checks for call support -->
  <intent>
    <action android:name="android.intent.action.VIEW" />
    <data android:scheme="tel" />
  </intent>
</queries>

Run on WEB

$flutter run -d chrome

Result

Refernce

Pub.dev: url_launcher

About

Flutter's Simple URL launcher

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages