label305/apns-http-bridge

This package is abandoned and no longer maintained. No replacement package was suggested.

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.

0.2 2014-10-21 11:06 UTC

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.

Getting Started

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.