Offline Pages Pro

op-action

You can use op-action: URL scheme to launch Offline Pages app. Optionally, you can specify URL and title of the page to add to offline queue.

Application homepage: http://codiumlabs.com/ios/offline-pages/
iTunes link: http://itunes.apple.com/us/app/offline-pages/id364859644
HTML Link example: <a href="op-action://add?title=My+blog&url=http://www.myblog.com/">Read my blog offline in Offline Pages app</a>
Native application URL string example: op-action://add?title=My+blog&url=http://www.myblog.com/
Extended example: // 1) Launch app: NSString *stringURL = [NSString stringWithString:@"op-action://"]; NSURL *url = [NSURL URLWithString:stringURL]; [[UIApplication sharedApplication] openURL:url]; // 2) Launch app and add URL http://www.apple.com to save queue: NSString *httpURL = [NSString stringWithString:@"http://www.apple.com"]; NSString *offlineURL = [NSString stringWithFormat:@"op-action://add?url=%@", httpURL]; NSURL *url = [NSURL URLWithString:offlineURL]; [[UIApplication sharedApplication] openURL:url]; // 3) Launch app and add URL http://www.apple.com to save queue with custom title "Apple website": NSString *httpURL = [NSString stringWithString:@"http://www.apple.com"]; NSString *title= [NSString stringWithString:@"Apple website"]; NSString *encodedTitle = [title stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]; NSString *offlineURL = [NSString stringWithFormat:@"op-action://add?title=%@&url=%@", encodedTitle, httpURL]; NSURL *url = [NSURL URLWithString:offlineURL]; [[UIApplication sharedApplication] openURL:url];
Tags: offline browser