Skip to content

ahmeriqbal7aa/url_launcher_package_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url_launcher_package_examples

A new Flutter application.

Getting Started

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Do Some Configuration

  • Add these lines to AndroidManifest.xml under manifest.
<queries>
  <!-- If your app opens https URLs -->
  <intent>
    <action android:name="android.intent.action.VIEW" />
    <data android:scheme="https" />
  </intent>
  <!-- If your app makes calls -->
  <intent>
    <action android:name="android.intent.action.DIAL" />
    <data android:scheme="tel" />
  </intent>
  <!-- If your app emails -->
  <intent>
    <action android:name="android.intent.action.SEND" />
    <data android:mimeType="*/*" />
  </intent>
</queries>
  • Add these lines to Info.plist under dict.
<key>LSApplicationQueriesSchemes</key>
<array>
  <string>tel</string>
</array>

Actions and Schemes

  • Open URL in the Default Browser: http:<URL> , https:<URL>, e.g. http://flutter.dev

  • Create Email To: mailto:<email address>?subject=<subject>&body=<body>, e.g. mailto:smith@example.org?subject=News&body=New%20plugin

  • Make a Phone Call To: tel:<phone number>, e.g. tel:+1 555 010 999

  • Send an SMS Message To: sms:<phone number>, e.g. sms:5550101234

Working

  • URL and SMS

  • EMAIL and PHONE