How to open RSS Link in Safari App in My RSS Reader App

I develop a RSS reader App named "我阅", How cloud it launch my App to parse the RSS link when I open it in Safari for iOS. Safari just warn "Can't open the page, this is a RSS Feed Link..."

Hi,

Do a Google search for what youre looking for. There are plenty examples on the web.


Dan Uff

It took me half a day to figure this one out. I tried several things, like 'Document Types' in my Info.plist, but nothing worked.


Finally I've found it on https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html


You should add a custom url scheme to your application. And as soon as you open an RSS feed URL in Safari on iOS, Safari will call feed://[url of the feed].


Please see Table 6 (CFBundleURLSchemes) on the link above. It actually describes this specific usage as an example: "This key contains an array of strings, each of which identifies a URL scheme handled by this type. For example, specifying the URL scheme

feed
makes other apps aware that this app is capable of viewing RSS content. Types of URL schemes include
http
,
ftp
,
mailto
, and so on."


And note that if there are multiple application on your device that all have the url scheme 'feed' in their plist, it is unknown how iOS decides which app to use. There is no interface to select one, and it seems that the latest app that was installed with the scheme will be used.

How to open RSS Link in Safari App in My RSS Reader App
 
 
Q