PocketSave

This plugin allows users to save urls via the Pocket SDK.
Tha Leang0.1.00
platforms: ios
$ cordova plugin add leang.phonegap.plugins.pocketsave

PocketSave-PhoneGap-iOS

Phonegap plugin to allow users to save urls with Pocket for iOS

Installation

  • phonegap plugin add https://github.com/vleango/PocketSave-PhoneGap-iOS.git
  • In AppDelegate.m, add #import "PocketAPI.h"
  • Add:
- (BOOL)application:(UIApplication*)application handleOpenURL:(NSURL*)url
{
    if([[PocketAPI sharedAPI] handleOpenURL:url]){
        return YES;
    }
  ...
  • Targets -> Info -> URL Types
identifier: com.readitlater
URL Schemes: pocketappXXXXX
  • In PocketSave.m, add your consumerKey

  • If you are using ARC, add -fno-objc-arc to the following files:

PocketAPIOperation.m
PocketAPILogin.m
SFHFKeychainUtils.m
PocketAPI.m

Usage

window.plugins.pocketsave.saveLink(url, successCallback, errorCallback);