Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MacGeneration/MacGPusher
C++11 Project to interact with Apple Push Notification service (APNS)
https://github.com/MacGeneration/MacGPusher
Last synced: 3 months ago
JSON representation
C++11 Project to interact with Apple Push Notification service (APNS)
- Host: GitHub
- URL: https://github.com/MacGeneration/MacGPusher
- Owner: MacGeneration
- License: bsd-2-clause
- Created: 2013-06-26T11:40:25.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-22T08:20:33.000Z (about 9 years ago)
- Last Synced: 2024-04-24T20:07:55.970Z (7 months ago)
- Language: C++
- Homepage: http://www.macg.co
- Size: 313 KB
- Stars: 41
- Watchers: 10
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MacGPusher #
This is a small C++11 project for interacting with the Apple Push Notification Service (APNS). You can send push notifications to iOS devices or Safari browser (OS X 10.9 only). It also handles the Feedback service.
## Installation ##
First set your certificates paths in **global.hpp**.
#### OS X: ####
Just open *MacGPusher.xcodeproj* and click the build button.
#### Linux: ####
You need a compiler that supports C++11, and to link to **libssl** and **libcrypto**, then just run **make** (Thanks to ***lledey*** for the Makefile)
If you want to build it by hand :
*gcc:*
g++ MMGAPNSConnection.cpp MMGSSLConnection.cpp MMGDevice.cpp MMGTools.cpp MMGPayload.cpp MMGSafariPayload.cpp MMGIOSPayload.cpp main.cpp -lssl -lcrypto -std=c++11 -o MacGPusher
*clang:*
*Some users reported problem building with clang on Debian 7.0 (see #1)*
clang++ MMGAPNSConnection.cpp MMGSSLConnection.cpp MMGDevice.cpp MMGTools.cpp MMGPayload.cpp MMGSafariPayload.cpp MMGIOSPayload.cpp main.cpp -lssl -lcrypto -std=c++11 -o MacGPusher
## Usage ##
Look at **main.cpp** to see a very basic example of sending a notification to a single device.
Look at **feedback.cpp** to see how to use the feedback service.
Fetching a list of devices is up to you. I use this project with **libmysqlclient** to fetch a list of *~100k* devices and send the notifications with good performances.
## License ##
***MacGPusher*** is released under the *Simplified BSD license*, see **LICENSE.txt**.
Twitter : @MacGeneration