I am working on an iOS app similar to Uber and wish to integrate SiriKit to perform various in app functions like requesting a cab, the app has been made using Objective-C and I wish to integrate the SiriKit. What is the best possible way to do that. I am afraid I might not be able to switch to Swift.
The Apple Developer documentation has code samples in both Objective-C and Swift. Your question is very broad, so I would start by looking through the documentation that they provide:
https://developer.apple.com/library/content/documentation/Intents/Conceptual/SiriIntegrationGuide/
On this site, it is better to ask specific questions, along with code samples showing what you have tried, rather than broad questions basically asking for a full tutorial.
You misundestood SiriKit concept. It based on usage of "Intents extension". to handle intents you free to use objective-c.
Please refer to manual
Related
I know siri provides limited Intents and we have to add our app to domain to be able take input from siri.
But I would like to create my own intent for the users to access my app via siri.
I couldn't find much support for this anywhere ? any helpful pointers are welcome
Update
Now you can create custom intents and use them with Siri Shortcuts. Here is a simplified tutorial by Ray Wenderlich
https://www.raywenderlich.com/6462-siri-shortcuts-tutorial-in-ios-12
or you can prefer
This article for beginners
For more details, you should prefer Apple's official documentation.
https://developer.apple.com/documentation/sirikit
Outdated Answer
You can't create a custom intent for now. Maybe in later versions, they can add support for custom intents. Maybe they don't. With their current approach, Apple holds all the control over, intent(operation) types, data, privacy, etc. I'm not sure they will change that.
If you really need custom voice commands, you can implement it inside your application(not out of the app like Siri). There are alternatives like
Apple's AVSpeechSynthesizer
Apple's Speech
IBM's Watson
Nuance Speech Kit
You can create a custom intent as of iOS 12. It is quite a complicated process, but there are some tutorials available that can help you out.
I think Apple's WWDC example is a good starting point.
Hello fellow developers :)
I have been trying to implement Google Play Games Services in my newest app project, but find myself being completely lost. I find GMS to be quite complicated and therefore need some sort of tutorial to stand a chance.
Unfortunately the official guide on Googles websites (https://developers.google.com/games/services/ios/quickstart) only describes the setup process for Objective-C.
My question is therefore, as ambiguous as is, if anyone knows anything that could help me implement GMS. This includes links to tutorials, code-snippets, personal tips, or anything else that could come in handy.
And yes, I am aware that questions like these are often frowned upon due to their ambiguous nature. What must be understood is that this question is a desperate last attempt before giving up and going with GameCenter instead. I simply have not found the information needed anywhere else.
Thank you! :)
You may need to use a bridging header for this. Check out the following link by gguuss in GitHub: http://github.com/gguuss/gplus-ios-swift.
I want to use apple maps in Swift to be able to put in, lets say, 3 addresses. And then the program will sort out the quickest route. My problem is that i can't even find the apple files that show using maps in swift.
I looked here
The Swift Programming Language - Basics
(not just the intro, most of it).
And in the intro it says
Location services are provided by the Core Location framework, which defines Objective-C interfaces..."
I can't find example code for using the maps for at all what I'm looking for so i guess what I'm asking is:
Will this work in swift?
Do you know of any files that may help or websites with example code of how to accomplish this?
What's the problem here? E.g. the documentation for CLLocation -startUpdatingLocation includes a description of its Swift binding as well:
func startUpdatingLocation()
You may be looking at a situation where Apple just did not update a Programming Guide since Swift has become available and you may typically infer "Objective-C and Swift" where it mentions "Objective-C".
I am currently working on a MRAID compliant advertisement SDK and am finding it difficult to find resources on what exactly makes it MRAID compliant.
I have had a look at the IAB document:
http://www.iab.net/media/file/IAB_MRAID_v2_FINAL.pdf
But find this bulky, confusing and not to the point. I was wondering if anybody had better resources for this on the iOS and Android front for the compliance, thank you.
I'm not completely clear on what you're working on. Are you trying to build an SDK that implements the standard in order for it to display ad's (creatives in MRAID terminology)?
If so I've implemented an SDK for Android that does just that. The document is one of the best resources out there. I suggest you go over it call by call and just use the JSBridge to implement the functionality.
Also be aware that the standard says nothing about how the ad is actually delivered to the device so how you want to do that is up to you.
Can anybody help me to find the developers documentation of linphone for iOS.
I want to understand the architecture and functionality of the project.
Thanks in advance.
I am afraid that apart from http://www.linphone.org/eng/documentation/ (that you've supposedly seen already) there is no documentation on this project. You will need to read the source code if you need more information about the architecture/etc. Since open source projects are developed very often in the author's spare time, it is quite common that they concentrate on the actual code writing instead of drawing architectural diagrams and design documents.
If you need a SIP stack for iOS I would recommend you to have a look at pjsip. It is definitely a more mature project with extensive documentation on every level.
All you need is google the function you want to check, and then there will be many documentation links. Those documentation may be different because of different versions. I think it is enough for you.
For example:
http://fossies.org/dox/linphone-3.5.2/index.html