In my application i want to play iTunes purchased movies (DRM Protected content) for that what i did is passing the HTTP URL to safari and safari will play the DRM protected file.This HTTP URL is pointing the DRM protected file.I'm opening safari in the normal way by [[UIApplication sharedApplication] openURL:url] method. It is working fine in iOS 7 and prior versions. Unfortunately this feature is not working in iOS 8, it opens safari and showing play symbol with cross mark. Please suggest me any workaround to achieve the solution in iOS 8.
Related
I am wondering how this site detected that I have their iOS app installed when I visited their web site on my phone.
http://drafthouse.com/austin
Sites can implement Safari Smart App Banners. See Apple's documentation for details:
Promoting Apps with Smart App Banners
It is done via something like this:
<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">
These are called Smart App Bannners and are a feature of MobileSafari on iOS 6. You can add these using literally one line of HTML code (a <meta> tag, see the linked docs).
I wish to play flash content in iPad app so i searched lot then finally i came to know Puffin browser will play flash content.
In my app when user tapping a button the app redirected to puffin browser then it will play the flash content. then again if try to re-open my app from puffin browser i could not re-open it.
I created URL Scheme for my app. after completion of flash video, i tried to open my app by using myApp:// in puffin browser but it does not re-open my app. if try same way in safari its working.
Please help me
External URL opening will be supported in the next version. Do you mean you want to manually type "MyApp://SomeUrl" in Puffin and then open MyApp with SomeUrl? Is your app free to download? I'd like to give it a trial.
ps: I work in CloudMosa which sells Puffin.
Maybe a bit late, but there a several documentated URL Schemes on the Puffin Developer Page: https://www.puffinbrowser.com/development/
Puffin Browser for iOS handles the following URL Schemes.
puffin for http
puffins for https
puffin-x-callback for callbacks back to calling app (iOS after version 3.5)
i.E. use instead of https://www.google.de the Url puffins://www.google.de to open https://www.google.de in the Puffin Browser.
Unfortunately currently workin only for the not longer maintained iOS Versions Puffin and Puffin Pro. The new browser Puffin Lite has afaik no documentated URL Schemes or does it?
I know my app can read the photos saved in iOS photo-library; also my app can save a new photo in the default iOS photo-library. But what I am trying to achieve is something like this: the default Photos app should be able to send a photo to my iOS app, just like you can share a photo to Facebook or send to iOS Mail app.
I want my application to be listed in this screen. Note: this is a screenshot of iOS6 Photo application.
POSSIBLE!!!
This thing is very interesting on iOS.
You have to tell iOS what kind of files your app can open (see pic below)
Kind of file your app can open will be set by Conforms To field
(see all kinds
https://developer.apple.com/library/ios/documentation/miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html)
This is a best sample about it
(http://www.raywenderlich.com/1980/email-tutorial-for-ios-how-to-import-and-export-app-data-via-email-in-your-ios-app)
You have to implement -application:handleOpenURL: in AppDelegate
-(BOOL) application:(UIApplication *)application handleOpenURL:(NSURL *)url {
//url is a local url of photo you've chosen, iOS copied it into document folder of your app
//do what you want
}
================================================
If you want to see how some app (Dropbox, GoogleDrive ...) can open some kind of files, you can see their info.plist files
Good luck
It's not possible to add your app in the iOS "Photos" app. But it's possible if you want other (3rd party) apps to be able to open files in yours. Please refer below links.
http://support.apple.com/kb/PH3268,
http://www.iphonehacks.com/2013/09/ios-7-photos-app.html
I am using Xcode to develop an iOS app and I need to know how to link a website to a button to open with in the app. I want o have a drop down bar that has buttons to return to a separate screen and a button to save the link to another place. Is there a way to open a website or a link to safari with my app?
You can open a website directly by using a UIWebView object in your app.
You can get Safari to open a web site by invoking something like [[UIApplication sharedApplication] openURL:myURL].
I am developing an app that use UIWebView to display a list of videos from youtube.
For playing the videos I use the youtube embed feature and it open the youtube application when the user clicks the video thumbnail - works great.
I want the same functionality to be executed when I click a "Watch Now" button that will be located near the youtube thumbnail on my web view but when I try to use "href" to the youtube video it opens the "youtube play page" and not the youtube iPhone application like in the embed way...
Any ideas?
Netanel.
I've created a test project with following code executed:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://www.youtube.com/watch?v=5ra01Bqef7A"]];
Running the project in Simulator allowed to reproduced the issue you've stumbled upon: test app launched Safari and it simply opened the Youtube video's page. But when I ran the same project on an iPhone the result was different: it launched the Youtube app and it started lading/playing the video in the URL right away.
The reason why the same code behaves itself differently is that there's no Youtube app in Simulator, so the only URL handler available in its environment is Safari. So everything's working as it should, you can continue developing your app.
BTW here's a really nice official blog post from Youtube about integrating it with iPhone apps: YouTube APIs + iPhone = Cool mobile apps