https://github.com/onix-systems/onxpushmanager
Helps in managing APNS token
https://github.com/onix-systems/onxpushmanager
Last synced: 22 days ago
JSON representation
Helps in managing APNS token
- Host: GitHub
- URL: https://github.com/onix-systems/onxpushmanager
- Owner: Onix-Systems
- Created: 2015-04-06T21:54:28.000Z (about 10 years ago)
- Default Branch: develop
- Last Pushed: 2019-04-09T07:41:55.000Z (about 6 years ago)
- Last Synced: 2025-04-11T05:07:52.555Z (22 days ago)
- Language: Swift
- Homepage:
- Size: 57.6 KB
- Stars: 3
- Watchers: 9
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ONXPushManager
This is a simple class written in Swift to help you manage push notifications in a simple way.
This class will help you:
- delete/update a proper device/token on a server (server should be applicable to the way it's done in this class)
- replace all your Remote Notifications code with just few lines of forwarding
- handle the remote notification properly depending on the state it was received
- handle the situation when Remote Notification is received before views are loadedJust subclass the ONXPushManager and override following methods with your code:
`func actFromPush(pushInfo: PushInfo)`
Put your custom actions here depending on PushInfo.`func updatePushesWithLatestToken()`
Update/Add token backend requests go here`func deleteTokenFromBackend()`
Delete request goes here`func handleApplicationDidBecomeActive(app: UIApplication)`
This one is optional, you can, for example, clear badge here.Please see https://gist.github.com/nezhyborets/427a3e8eb403cea42b61 for example of sublcassing