zeusframework / ddapns Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dodyw/ddapns
License: BSD 3-Clause "New" or "Revised" License
This project forked from dodyw/ddapns
License: BSD 3-Clause "New" or "Revised" License
============ DDAPNS v.1.0 ============ Use this script to manage APNS (Apple Push Notification Service). REQUIREMENT =========== - PHP 5.2.x with SQLite support - .pem files for APNS (go to apple provisioning portal) - server with port 2195 open INSTALLATION ============ 1. Edit config.php. 2. If necessary provide both PRODUCTION and DEVELOPMENT .pem file. 3. Set sandbox_mode = true for DEVELOPMENT and set false for PRODUCTION. 4. Set apns_access_key to any string so only you able to use this script. <?php $config['sandbox_mode'] = true; $config['apns_pem_file_sandbox'] = "aps_acsdemo_dev.pem"; $config['apns_pem_file_production'] = "aps_acsdemo_prod.pem"; $config['apns_access_key'] = "123456"; ?> TESTING ======= 1) Adding new device token. Your iOS app need to send data containing device token. Assuming you install in localhost with IP address 192.168.1.144 under ddapns folder. When testing on localhost, always use IP because your device need to find you mac. Open browser and locate to: http://192.168.1.144/ddapns/subscribe.php?key=123456&token=fc5ef26f9811e83d93c2b3bd0403907d7ba97d287f9b3889074838e5bcfec89b Parameters: - key is apns_access_key - token is device token 2) View device tokens. You can use it to see all device tokens Open browser and locate to: http://192.168.1.144/ddapns/viewtokens.php?key=123456 Parameters: - key is apns_access_key 3) Remove all tokens. You can use it to remove all tokens http://192.168.1.144/ddapns/removetokens.php?key=123456 Parameters: - key is apns_access_key 4) Push a message to all devices. http://192.168.1.144/ddapns/push.php?key=123456&msg=this%20is%20test Parameters: - key is apns_access_key - msg is the message 5) Checking port 2195 is open http://192.168.1.144/ddapns/checkport.php
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.