Deep link to specific HomeKit accessory - ios

My app displays a list of HomeKit accessory devices. I want to let users view the device in the iOS Home app for detailed configuration.
I'm able to deep link into the Home app like this:
let homeUrl = URL(string: "com.apple.Home://launch")
UIApplication.shared.open(homeUrl)
Is there a way to provide a URL to route into a specific device? I haven't found anything from Apple's docs related to HomeKit deep links. I've tried providing the device UUID in the URL, but I'm not sure how to formulate it correctly.

Related

Are iOS app clips launchable from an url?

Are iOS app clips launchable from an URL?
The Apple description says that the QR code embeds an encrypted URL to access the clips. Is it possible to use directly that link like with deep links?
As I understand, URLs can only be opened from Safari Smart App Banner. I managed to do that. Apple states in their forums that it is also possible from QR codes.
Looks like you can't just click a link - like in Universal Link - and the App Clip Card will show up.
If I understood correctly, you can set up invocation URLs in App Store Connect and when the system opens a registered URL your App Clip should launch.
You can learn more in this WWDC session and from the documentation.
When a user shares a link to a site that displays a smart banner configured for AppClip, then only message will present a banner that will invoke an App Clip.

Does iOS Sharing sheet recognize all social apps on the device?

Our team is building an iOS app from which a user can share media content through social apps present on his iPhone. While testing how other apps behave, I observed that not all apps show all the available sharing options.
Specifically, I don't see the following apps in the sharing options:
Kik, WeChat, Reddit, Youtube, GroupMe, Band.
I have all these apps on my device. So expected all these apps to be shown for sharing. Should the base app explicitly handle all the sharing options?
No. Only following ActivityTypes are supported by iOS. Of course you can exclude some of these activities if you want to.
UIActivityTypePostToFacebook
UIActivityTypePostToTwitter
UIActivityTypePostToWeibo
UIActivityTypeMessage
UIActivityTypeMail
UIActivityTypePrint
UIActivityTypeCopyToPasteboard
UIActivityTypeAssignToContact
UIActivityTypeSaveToCameraRoll
UIActivityTypeAddToReadingList
UIActivityTypePostToFlickr
UIActivityTypePostToVimeo
UIActivityTypePostToTencentWeibo
UIActivityTypeAirDrop
For the app to appear in the share sheet:
The app needs to implement a sharing extension (not all do)
The sharing extension must support the type of data that is being shared (text, url, image, video...).
The user must have selected that sharing extension (by tapping on the "More" button at the end of the list)

How to navigate particular search page in App store?

In my app i am opening documents via UIDocumentInteractionController. if no apps is installed in device we want to navigate to app store.In that place i want to navigate to document viewer related apps page.
if anyone can suggest me.
You can open the App Store to an app page by getting the app page url. On iOS, you can go to the app page, click share and copy the url.
Then, you can open it like this (Swift) :
let theURL = NSURL(urlWithString: "app url here")
UIApplication.sharedApplication().openURL(theURL)
If that answers your question.
All you have to do is use iTunes search query and it will navigate to a an 'app like' visual:
http://itunes.com/Dropbox
Where 'DropBox' is your search term. This is what it looks like on device :
Or you can do it to a specific category:
http://itunes.apple.com/genre/mobile-software-applications/id6002?mt=8

Custom URL Scheme for sharing URL in native Facebook iPhone App

I know the available custom URL schemes for the native Facebook iPhone App:
What are all the custom URL schemes supported by the Facebook iPhone app?
But I can't find a way to publish a URL to my wall / timeline in that way, that Facebook collects / shows the site title and thumbnail as it does with the touch.facebook.com/sharer.php file.
The only way I see so far is to call
fb://publish/?text=www.domain.com
but this only post the link to my timeline, not title, thumbnail and site description.
Does anyone know a better way?
Basically you have two options:
You can either launch Safari using the Feed Dialog URL Scheme as explained here or use Facebook SDK as explained here.
If your App isn't integrated with Facebook already, it's probably easier to go with the first one.

Is there a custom URL scheme for the built-in Contacts app?

I am trying to write an app that does a person search of my company. When it returns a result, I want to include a feature to add the person to the Contacts app with the push of a button.
The problem is, I can't find a way to launch the Contacts app through a custom URL scheme with the new person info as parameters. Does anyone have any idea if this is possible and if so, how to go about that?
If there were a public URL scheme, Apple would have documented it in the URL Scheme Reference.
Your options are:
ABNewPersonViewController or ABUnknownPersonViewController
Direct modification of the address book. (archived link)
There is a URL scheme for the Contacts app on the Mac – the addressbook scheme. You might want to try whether this works on iOS as well.
No,Not possible to open Default contact application as URL scheme is not available

Resources