Latest 0.1.4
Homepage https://github.com/NOTIFIT/notifit-ios-swift-sdk
License MIT
Platforms ios 8.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Tomas Sykora, jr./NOTIFIT-Swift.svg?style=flat)](https://travis-ci.org/Tomas Sykora, jr./NOTIFIT-Swift)
Version
License
Platform

Installation

NOTIFIT-Swift is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "NOTIFIT-Swift"

Usage

Register device

You can register device with running your running application to NOTIFIT server just by adding this line to your AppDelegate to didFinishLaunchingWithOptions function

    Notifit.registerDeviceForProject("PROJECT_TOKEN", forApplication: "APPLICATION_TOKEN")

Notification token

If you want to be able to send push notification to this device you need to implement this line of code to didRegisterForRemoteNotificationsWithDeviceToken

Notifit.updateNotificationToken(deviceToken)

Getting PEM certificate

In order to be able to send push notification to device with this NOTIFIT SDK, you need to add correct PEM certificate to created application on NOTIFIT server.

In case you are not using fastlane (https://github.com/fastlane/fastlane.git) you really should. In Fastlane tools there is a tool called pem (https://github.com/fastlane/fastlane/tree/master/pem) using this you are able to generate PEM certificate for your application.

Production certificate

pem 

This will create 3 file on your disk production_{{BUNDLE_ID}}.{pem | pkey | p12}

You need to upload .pem to NOTIFIT

Development certificate (for sandbox device tokens)

pem --development

Proceed same as with production certificate

You need to create 2 iOS applications for each application on NOTIFIT in order to be able to recieve push notification while developing and also when running production builds of your iOS application.

Author

Tomas Sykora, jr., [email protected]
Project leader, iOS developer and initiator of NOTIFIT

License

NOTIFIT-Swift is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NOTIFIT-Swift",
    "version": "0.1.4",
    "summary": "SDK for NOTIFIT.io",
    "description": "Swift pod for implementing NOTIFIT to your iOS application",
    "homepage": "https://github.com/NOTIFIT/notifit-ios-swift-sdk",
    "license": "MIT",
    "authors": {
        "Tomas Sykora, jr.": "[email protected]"
    },
    "source": {
        "git": "https://github.com/NOTIFIT/notifit-ios-swift-sdk.git",
        "tag": "0.1.4"
    },
    "social_media_url": "https://twitter.com/syky27",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "NOTIFIT-Swift": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This