Coder Social home page Coder Social logo

gfxcc / macgpusher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from macgeneration/macgpusher

0.0 2.0 0.0 325 KB

C++11 Project to interact with Apple Push Notification service (APNS)

Home Page: http://www.macg.co

License: BSD 2-Clause "Simplified" License

C++ 97.35% Makefile 2.65%

macgpusher's Introduction

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

macgpusher's People

Contributors

lledey avatar nyx0uf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.