Skip to content

v1.1.0 - Push notification support - beta v1

Pre-release
Pre-release
Compare
Choose a tag to compare

See https://www.ably.io/documentation/realtime/push for details on how to use Ably's native push notifications.

Installation

You can install Ably for iOS through CocoaPods, Carthage or manually.

Installing through CocoaPods (recommended)

Add this line to your application's Podfile:

# For Xcode 7.3 and newer
pod 'Ably', :git => 'https://github.com/ably/ably-ios.git', :branch => 'push'

And then install the dependency:

$ pod install

Then you can:

 // On Objective-C
#import <Ably/Ably.h>

// On Swift
import Ably

Installing through Carthage

Add this line to your application's Cartfile:

# For Xcode 7.3 and newer
github "ably/ably-ios" "push"

And then run carthage update to build the framework and drag the built Ably.framework into your Xcode project.

Manual installation

  1. Clone the push branch: git clone -b push [email protected]:ably/ably-ios.git
  2. Drag the directory ably-ios/ably-ios into your project as a group.
  3. Ably depends on SocketRocket 0.5.1; get it from the releases page and follow its manual installation instructions.
  4. Ably also depends on msgpack 0.1.8; get it from the releases page and link it into your project.