Tag: xcode

SiriKit Tutorial – Right to the Point

In this tutorial you will learn how to get SiriKit working in your iOS App! To learn more about how SiriKit works behind the scenes, check out this article!

Requirements: Xcode 8, Swift 3 Project (this is what the tutorial is built on)

Part 1. Getting a quick and simple demo running

Create & setup iOS app

  1. Create a new ‘Single View Application’ Xcode Project. For this tutorial, lets use the project name “SiriKitDemo”
  2. Once the project is created and opened up, select your iOS app target in project settings.
  3. Enable the Siri capability under the “Capabilities” tab

 

capabilitiesshot

Now its time to add the intent files to your project

4. Select File –> New –> Target

5. Select “Intents Extension”

intents

6. Click Next and specify the name of your extension and configure the language and other options. ***For this tutorial, Check “Include UI Extension”***

intentdetails

Request access to Siri

7. Include the NSSiriUsageDescription key in your iOS app’s Info.plist file. The value for this key is a string that describes what information your app shares with SiriKit

infoplist

8. Open up your ViewController.swift file, import Intents and under viewDidLoad, call the requestSiriAuthorization: class method of INPreferences

viewcontroller-sirikit

Running & Testing

9. Select your iOS app’s target & Run your application

10. Select your Intent Extension and run that by attaching it to your iOS app

extensionrunning

11. Activate Siri and say “Search for messages in <appname>” —Siri should respond with what is listed in the IntentHandler.swift file

***Sometimes it takes a few minutes for Siri to process your extension, if it doesn’t work right away, don’t be alarmed***

 

Want to get a little bit more in depth? Learn how to add more intents, customize the way Siri handles intents, & more in Part 2!

 

 

ios-10-how-to-download-970-80

Building your app for iOS 10

As the date approaches quickly for the public release of Apple’s iOS 10, it’s important to think of how your app can harness the power of all the new features! Apple has taken a major step, opening up many different SDK’s and libraries. Let’s see how we can take advantage of them!

What’s New:

SiriKit

SiriKit enables your iOS 10 apps to work with Siri, so users can get things done with your content and services using just their voice. In addition to extending Siri’s support for messaging, photo search and phone calls to more apps, SiriKit also adds support for new services, including ride booking and personal payments.

 

CallKit

CallKit lets VoIP apps integrate with the iPhone UI and give users a great experience. Use this framework to let users view and answer incoming VoIP calls on the lock screen and manage contacts from VoIP calls in the Phone app’s Favorites and Recents views.CallKit also introduces app extensions that enable call blocking and caller identification. You can create an app extension that can associate a phone number with a name or tell the system when a number should be blocked.

Notifications

The notifications framework got an overhaul and you can now make your notifications more custom and rich. With customizing the UI of a notification and integrating 3D touch to add quick actions, your users will be able to interact with notifications like never before.

 

Integrating with the Messages App

In iOS 10, you can create app extensions that interact with the Messages app and let users send text, stickers, media files, and interactive messages. You can also support interactive messages that update as each recipient responds to the message. You can create two types of app extensions:

  • A Sticker pack provides a set of stickers that users can add to their Messages content.
  • An iMessage app lets you present a custom user interface within the Messages app, create a sticker browser, include text, stickers, and media files within a conversation, and create, send, and update interactive messages.An iMessage app can also help users search images that you host on your app’s related website while they’re in the Messages app.

 

Speech Recognition

This new framework supports continuous speech recognition and helps you build apps that can recognize speech and transcribe it into text. Using the APIs in the Speech framework, you can perform speech transcription of both real-time and recorded audio.

 

ReplayKit

Record or stream video and audio directly from your app, so that users can share their experiences through email, messages, and social media.

 

These are just a handful of cool new frameworks that your apps can work with. For more information check out https://developer.apple.com/ios/

 

Have apps using some of these frameworks and what it featured? Let us know!