yurevich1 / lua-apns

Lua binding for libcapns . Now it is possible to work with Apple Push Notification Service for your Lua / LuaJIT server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lua-apns

Lua binding for libcapns . Now it is possible to work with Apple Push Notification Service for your Lua / LuaJIT server

First of all, install libcapn library https://github.com/adobkin/libcapn

Second step is to build apns.c like this:

gcc -shared -fpic -O -I. -I/path/to/luajitheaders -L. -L/path/to/luajithlib -L/usr/lib/capn -lcapn apns.c -o apns.so

then read and execute the sample: luajit example_apns.lua DO NOT FORGET TO CREATE p12 FILE and USE CORRECT TOKENS.

About

Lua binding for libcapns . Now it is possible to work with Apple Push Notification Service for your Lua / LuaJIT server

License:MIT License


Languages

Language:C 82.5%Language:Lua 15.7%Language:Shell 1.7%