label305 / apns-http-bridge
API wrapper for the APNs HTTP Bridge. The APNs HTTP Bridge is a small Node.js application that provides a HTTP webservice to post APNs notifications (Apple's Push Notification Service). For example to provide access to platforms that do not fully allow socket connections, like Google App Engine.
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2016-10-23 14:49:46 UTC
README
This repository contains an API wrapper for the APNs HTTP Bridge. The APNs HTTP Bridge is a small Node.js application that provides a HTTP webservice to post APNs notifications (Apple's Push Notification Service). For example to provide access to platforms that do not fully allow socket connections, like Google App Engine.
- APNs HTTP Bridge Repository
- Webservice API Documentation
- Deploy APNs-HTTP-Bridge to Google Compute Engine
- Packagist
Getting Started
- Start a APNs HTTP Bridge server.
use Label305\APNsHTTPBridge\BridgeConnection; use Label305\APNsHTTPBridge\PushMessage;
$bridgeConnection = new BridgeConnection("http://127.0.0.1:8080/"); // You can have per device badges by using the PushDevice object $message = new PushMessage("bla", ["token 1", new PushDevice("token 2", 3)], '{ "extra": "json data" }', 3); $result = $message->send($bridgeConnection);
License
Copyright 2014 Label305 B.V.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.