TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2016 |
SPMSupports SPM | ✗ |
Maintained by Tomas Sykora.
NOTIFIT-Swift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "NOTIFIT-Swift"
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")
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)
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.
pem
This will create 3 file on your disk production_{{BUNDLE_ID}}.{pem | pkey | p12}
You need to upload .pem
to NOTIFIT
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.
Tomas Sykora, jr., [email protected] Project leader, iOS developer and initiator of NOTIFIT
NOTIFIT-Swift is available under the MIT license. See the LICENSE file for more info.