Skip to content

NOTIFIT/notifit-ios-swift-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTIFIT-Swift

[![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., jump@syky.cz Project leader, iOS developer and initiator of NOTIFIT

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published