Is it possible to access Safari's "Reading List" programmatically from iOS? I know it is possible to do it from a Mac as described here:
https://discussions.apple.com/thread/3238741?start=0&tstart=0
Thanks, gb
iOS 7 added an API to add items to the reading list:
#import <SafariServices/SafariServices.h>
SSReadingList *readList = [SSReadingList defaultReadingList];
NSError *error = nil;
BOOL status = [readList addReadingListItemWithURL:[NSURL URLWithString:urlToAdd]
title:titleToAdd
previewText:previewText
error:&error];
if (status) {
NSLog(@"Added URL");
}
else {
NSLog(@"Error: %@", [error localizedDescription]);
}
As Ashok pointed out in the comments, it's not possible to retrieve items from the reading list.
It's not possible. There is no API for accessing the reading list. Moreover, it doesn't help if you find out the plist file's location, because of the sandbox environment it can't be accessed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With