Skip to content

JacobWrenn/flutter_siri_suggestions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_siri_suggestions

Flutter plugin for exposure on Siri Suggestions.

Note: This plugin only work in iOS.

Getting Started

Add flutter_siri_suggestions as a dependency in your pubspec.yaml file.

Check out the example directory for a sample app.

Usage

Import the library via

import 'package:flutter_siri_suggestions/flutter_siri_suggestions.dart';

Example :

FlutterSiriSuggestions.instance.buildActivity(
  FlutterSiriActivity(
     "Open App 👨‍💻",
     isEligibleForSearch: true,
     isEligibleForPrediction: true,
     contentDescription: "Did you enjoy that?",
     suggestedInvocationPhrase: "open my app"
  )
);

FlutterSiriSuggestions.instance.configure(
  onLaunch: (Map<String, dynamic> message) async {
      // Awaken from Siri Suggestion
      // Do what you want :)
  }
);

call buildActivity method if you want.


suggestedInvocationPhrase

suggestedInvocationPhrase, only available iOS 12+

enjoy! 💃

About

ios siri suggestions plugin for flutter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 32.1%
  • Dart 30.6%
  • Ruby 25.0%
  • Kotlin 7.7%
  • Shell 4.6%