Skip to content

Send notification via Apple APNS (Apple Push Notification Service)

License

Notifications You must be signed in to change notification settings

fast01/ios-push-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ios-push-service

This is a c++ wrap class for libcapn, you need compile this source code with libcapn.

How to compile

You need install compile and install libcapn to your computer first. And then you need to install boost-bjam cause the compile script is writting in boost-bjam style. (For more information about the boost compile system, you can check it from http://www.boost.org) After these two things complete, you will be able to download ios-push-service code and compile/install it.

Compile libcapn

Use git to clone libcapn repo from https://github.com/adobkin/libcapn and make sure you have initialized submodules, because it will need jansson source to compile. And then please use cmake to generate makefile and platform.h file from libapn root dir.

You can follow these commands to compile libcapn on your own system (make sure your system have make, cmake and git installed)

git clone https://github.com/adobkin/libcapn
cd libcapn
git submodule update --init
cmake .
make && make install

Compile ios-push-service

Install boost-bjam on your system. You can download last version of boost source package from http://www.boost.org and use boost-bjam to compile io-push-service

bjam toolset=gcc

How to use

  1. Get certification and private key files (.pem) which are export from your key chains manager.
  2. Create PushManager using certification and key files
  3. Create a PushAction object by invoke method PushManager::create_action
  4. Invoke PushManager::send(PushAction* action) to send notification.

About

Send notification via Apple APNS (Apple Push Notification Service)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages