Wireless Accessory Configuration (WAC) in iOS integrate and how to use - ios

how to add the Wireless Accessory Configuration (WAC)into the app and use the features. I am using this for the first time. Also tried find few tutorials for the same in google but was not successful. I need to know how to integrate that in my app and use the files of the same.
Thanks in advance.

to integrate WAC to your you need go through libraries in following link:
// take a look at eawifiunconfiguredaccessorybrowser , this class helps you to handle WAC, this would suffice your need.
https://developer.apple.com/reference/externalaccessory/eawifiunconfiguredaccessorybrowser?language=objc
i will brief you about adding WAC feature your app.
step1
enable WAC capabilities in app target ,as shown in picture below :
enabling WAC in capabilities section of App target
step2
make use of eawifiunconfiguredaccessorybrowser methods :
*startSearchingForUnconfiguredAccessoriesMatchingPredicate --> helps to search for run configured accessories
*configure​Accessory:​with​Configuration​UIOn​View​Controller:​ --> does configuration by presenting system based screen.
it will work similar to WAC done through iOS setting app.

Related

Intent does not appear in Supported Intents

Link to all the code I'm working with so far: https://github.com/banool/respose.
I want to make an app where it is possible for users to activate some intent it defines as an action in response to some event in the iOS shortcuts app. For example:
If I open app X.
Run intent from my app instead.
I've seen this done before in other apps, so I know it's possible.
I have an intent defined (see attached code as well as image) that seems to be correct as far as I can tell. I don't think I need an intent extension because I don't intend to handle the intent in the background or via Siri.
I notice that when I try to add an intent under My Target -> General -> Supported Intents, the dropdown doesn't show my intent, only the built in system intents.
I'm not sure what I'm doing wrong here. I got to this point just by following the official guide from Apple: https://developer.apple.com/documentation/sirikit/adding_user_interactivity_with_siri_shortcuts_and_the_shortcuts_app.
I don't think the fact that I'm using Flutter should matter so much right now (I figure that's more of a concern for when the app actually opens up from the shortcut), but perhaps I'm wrong.
I have registered the app on App Store connect and I'm using an identifier that has the sirikit capability enabled. I've also added the "Siri" capability in XCode. I've tried this on both a simulator and a real device, the results are the same.
Any help would be much appreciated, thanks!
Had the same issue.
It seems that you can just type the class name without prompt, and it should work just fine. Don't forget to select proper target though

React-Native: How it can be added buttons in the application settings iOS?

I am trying to add some debug information in my application data when you go to Settings -> Your app. I will like to add informations about the application version and a button to delete the application data.
I could not find informations to help me making it. Is it a way to make it?
This has nothing to do with react-native it self.
You have to follow this guide in order to do so.
Its a bunch of configs in plist files that will enable you to do so.
https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/UserDefaults/Preferences/Preferences.html
After that you use this API to get/set values from keys
https://facebook.github.io/react-native/docs/settings.html

IOS App Submission Routing App

I am trying to submit my app for review in Itunes Connect, but when I try to submit it I get an error:
To configure this app as an IOS routing app, upload a routing app
coverage file on the app's Version page in My Apps on iTunes Connect.
To configure your app as an IOS routing app, the app's Info.plist must
contain the MKDirectionsApplicationSupportedModes key.
So in my project, in the Capabilities, the Maps is turned off. I do have the MapKit.framework in my project, as I do utilize the map, however I do not ever show routing information nor provide it in my app. Is the fact that this framework in my project causing this ITunes Connect error, and if so, how do I go about fixing it. And by fixing it, I want it to turn off routing.
My app is not made to provide routing information, nor do I want to set it as an iOS routing app.
Any help would be appreciated.
I am using XCode 6.
I figured it out. In my info plist there was a document type name of MKDirectionsRequest. Removing that solved the problem.
From the apple docs
(To use the features of the Map Kit framework, you must turn on the
Maps capability in your Xcode project.)
above the entire paragraph.(https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009497)
Location-based information consists of two pieces: location services
and maps. Location services are provided by the Core Location
framework, which defines Objective-C interfaces for obtaining
information about the user’s location and heading (the direction in
which a device is pointing). Maps are provided by the Map Kit
framework, which supports both the display and annotation of maps
similar to those found in the Maps app. (To use the features of the
Map Kit framework, you must turn on the Maps capability in your Xcode
project.) Location services and maps are available on both iOS and OS
X.
Not sure but maybe you only need to turn on mapkit
In my info.plist I had to delete two entries:
1) the document you referenced above - MKDirectionsRequest
and
2) MKDirectionsApplicationSupportedModes - MKDirectionsModeCar which is called "Maps routing app supported modes"
I just faced this exact issue last week.
I had accidentally turned on Map capabilities and turned it off later. Like your case, this didn't fix the issue.
I believe what fixed it was removing MapKit from here.
I was trying other things at the time so try this and if this isn't it then I'll see if something else I changed fix this.

an overlay for describing application features on first time install

I'm building an app, i just thinking like adding a feature so, that the user can be given guideline about how to use the app and various control in it.
The feature that came to my mind is , when unboxing android mobile you will see an overlay describing the menu, app .
so, is there any similar feature that iOS or any third party library provides. if so, will app store testing team will approve it.
see this image "http://developer.android.com/design/media/help_cling.png", for further reference.
I've been using these:
myblurintroductionview
wscoachmarksview
rchgestureguide

How to get listed in the share menu?

I'm creating a messaging app and I would like to enable other apps to share text to my app via the share menu option.
How do I get my app listed in there?
This is the menu I would like to get listed in:
In iOS 8, Apple has now enabled a way for you to add your application to a user's Share Sheet as one of many features of Extensibility, which aims to make your app available to the user even when closed.
You can read a lot more about share extensions here, or go straight to Apple's pre-release documentation to dive into the code.
Update: Above link of Apple documentation is not working, check here App Extension Programming Guide: Share
You can do this by adding a few entries into your apps info.plist.
Here's a post that should answer this for you.
slashdot post
also here another link
You can't automatically be added to the UIActivityViewController in other apps. The only things that appear on that "share menu" are a few predefined apps that Apple has added support for, as well as any other app specific activities an app decides to add.
You can setup your app to appear in a list of apps for opening a file but that is not the same as what you are asking for here.

Resources