Code Monkey home page Code Monkey logo

sirikit's Introduction

SiriKit2018

This app is an example of how to use the INPayBillIntent to pay bills using

Siri voice commands. The api calls are fake and hardcoded just to provide a working

example for people to experiment with.

How use this app and its extension:

  1. Build the app (It must be built before you try to use the Siri commands)
    • Running the SiriKit extension itself doesn't install anything so the extension can be used immediately after installing the main application
  2. Run the app
  3. Press OK when it prompts you "If you would like to use SiriKit2018 with Siri" to give the app authorization to use Siri commands
  4. Press the button that says "Sign In" to trigger a fake sign in
    • This updates the UserDefaults so that the extension knows the user is logged in otherwise you cannot use the SiriKit extension

The next step is up to you

There are three different ways you could trigger the SiriKit extension

after the app was built:

  1. a) If you are using the simulator go to the simulator toolbar:

    • Hardware > Siri (or option + shift + command + H)
    • Say "Pay my bill" or "Pay my electric bill" or "Pay my bill with SiriKit2018" or something similar
    • If the user isn't logged in, an error message will appear

    b) If you are using a device and you have signed in:

    • Say "Pay my bill" or "Pay my electric bill" or "Pay my bill with SiriKit2018" or something similar

    c) You could also choose to run SiriKit from Xcode itself after the app is built in the simulated device or a real device

    • Set the active scheme to "SiriKitExtension"
    • Under "Choose an app to run" select Siri
    • Say "Pay my bill" or "Pay my electric bill" or "Pay my bill with SiriKit2018" or something similar
  2. Say or tap the address you want

  3. A modal will show up if you want to confirm the payment

  4. If so, say or press "Send"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.