How do I deep link to Netflix on tvOS? - ios

I'm hoping to open a deep link to a show or movie in the Netflix app on the new 4th gen Apple TV.
I'm able to make deep linking work on iOS. The link below will open the Netflix app to a specific show or movie.
nflx://title/{showID}
for house of cards it's: nflx://title/70178217
When I try the same format on Apple TV, all that happens is the Netflix app opens without opening a specific show or movie. Siri search can open the app directly to a media item, so it seems like there should be a way for this to work.

Figured this out. Turns out you can use the regular netflix url structure, but replace http with nflx.
nflx://www.netflix.com/title/70291117 - Will open a show page
nflx://www.netflix.com/watch/70291117 - Will begin playing the video

Related

How can i upload video to Twitter using IOS

I have a local video link, and i want when the user press the button -> show twitter app with my video and title there (without using UIActivityViewController), just by pressing the button
You have to choose which way you want to go to upload a video, i.e. post a tweet with just that title you've mentioned.
Option 1
Use the HTTP API and create a URLRequest that contains the video as 'attachment'. You have to handle authentication first or the request will most likely fail.
Option 2 (Not really an option anymore)
Another way would be the iOS SDK provided, as given in the other example here. Problem is: there is no longer an official Twitter SDK for iOS. You could try your luck with the archived OpenSource SDK but maintainability is pretty decent with this.

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.

Set your app to detect and open when a specific link is clicked - Xcode, Swft 4

I'm currently working on an iOS app, Swift 4, that automatically launches on click of a link to block users from accidentally navigating to that link.
How would I set this up?
For example, YouTube opens up youtube.com links.
Sorry if this is a vague question, if more info is required feel free to ask ^^
If you create a custom URL protocol like myapp://somepath (where myapp is the protocol) then you just register that custom protocol, and when the user clicks such a link it’ll automatically open your app. You can’t intercept a general purpose URL protocol like HTTP or YouTube.
(At least not without OS support. That's how YouTube and the app store are able to open HTTP links.)
I haven't done anything like this so far but it seems like you should take a look at Apple URL Scheme and Universal Links:
https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html
https://coderwall.com/p/mtjaeq/ios-custom-url-scheme
https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html
https://www.raywenderlich.com/128948/universal-links-make-connection?utm_source=raywenderlich.com%20Weekly&utm_campaign=95f29cf4fc-raywenderlich_com_Weekly5_31_2016&utm_medium=email&utm_term=0_83b6edc87f-95f29cf4fc-415182745

Stream to VLC for iOS via URL Scheme

I'm trying to link to the iOS VLC app via its URL scheme. I need to open a FLV file(preferably as a stream, rather than downloading). I have tried vlc://http://domain.com/path/to/video.flv which opens VLC with a popup asking if I would like to play or download. Tapping download works, however play doesn't do anything except close the popup(I can get it to eventually work if I tap Play in the popup -> Play in Control Centre -> tap back in VLC). Is there a way to get it to play by directly through the URL?
Bonus points if you figure out how to select the "Scan for Subtitles" option in the "Open Network Stream" section of VLC. ;)
I've looked all over Google and can't find any documentation of the URL scheme. Any help is greatly appreciated.
the vlc:// pseudo protocol is broken in the current 2.6.4 release - it is fixed in 2.6.5 which is currently waiting for review by Apple. I hope that it will be out this week but this is beyond our control.
Generally speaking, I recommend to use another protocol though based on x-callback-url, documented on our wiki: https://wiki.videolan.org/Documentation:IOS/#x-callback-url
Regarding an extra subtitles URL, this is currently not supported. We could add it though, it's just that nobody asked for it so far.
For those who want to add subtitle it has been added in this commit and can be used like this:
vlc-x-callback://x-callback-url/stream?url=http://example.com/dogs.mp4&sub=https://example.com/dogs.srt

How do I make a link open up the app if it's available?

So I'm trying to figure out how youtube links work on a device. If you were to tap a youtube link in safari/anywhere it would open up the youtube app if it's available or just go to the video in safari. I'm trying to emulate this with my app.
I'm just confuse how to open a app with a valid web url. I understand that I can open a app with a url scheme such youtube:// but that not the same as www.youtube.com
These apps implement what's called URL Schemes.
Here's a pretty good tutorial for setting up your own app with a URL scheme: http://www.idev101.com/code/Objective-C/custom_url_schemes.html

Resources