https://github.com/syncano/syncano-apns-example
https://github.com/syncano/syncano-apns-example
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/syncano/syncano-apns-example
- Owner: Syncano
- Created: 2016-04-14T14:04:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-21T00:29:55.000Z (about 10 years ago)
- Last Synced: 2025-12-19T08:40:14.409Z (6 months ago)
- Language: Swift
- Size: 25.4 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# syncano-apns-example
## Overview
---
This application is a demo for push notifications on Syncano platform for iOS.
## Installation
---
* `git clone ` this repository
* `pod install`
* `open apns-example.xcworkspace`
* Set proper API-KEY (with user creation permission) and instance name in AppDelegate.swift:
```
let syncano = Syncano.sharedInstanceWithApiKey("api-key", instanceName: "instance-name")
```
* Setup certificates, provisioning profile and corresponding Bundle Identifier - read [Syncano Docs iOS - APNs Socket Configuration](http://docs.syncano.io/v1.1/docs/push-notification-sockets-ios)
## Features
---
* Login existing user or register new one
* Register device for notifications
* Receive and display notifications
## About
---
* Device token is obtained in AppDelegate.
* ViewController logs existing user or creates new user and registers new device
* NotificationsViewController displays new notifications received via NSNotificationCenter from AppDelegate
## Links
---
* [Syncano Docs iOS - APNs Socket Configuration](http://docs.syncano.io/v1.1/docs/push-notification-sockets-ios)
* [Syncano HTTP API Reference - APNS Config - details](http://docs.syncano.io/v6/docs/apns-config-details)
* [iOS Developer Library - About Local and Remote Notifications] (https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/Introduction.html#//apple_ref/doc/uid/TP40008194-CH1-SW1)