2017 © Pedro Peláez
 

symfony-bundle dabsquared-push-notifications-bundle

Push notifications/messages for mobile devices

image

dabsquared/dabsquared-push-notifications-bundle

Push notifications/messages for mobile devices

  • Thursday, August 18, 2016
  • by bass_rock
  • Repository
  • 8 Watchers
  • 25 Stars
  • 9,520 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 5 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

DABSquaredPushNotificationsBundle

A bundle to allow sending of push notifications to mobile devices. Currently supports Android (C2DM, GCM), Blackberry, Safari and iOS devices. The Base framework is imported from https://github.com/richsage/RMSPushNotificationsBundle, (*1)

Any contributions are welcome. The goal here is to provide an interface for push notifications with device registration and user device pairing just like FOSCommentBundle, but with very little code to write., (*2)

knpbundles.com, (*3)

Road Map

See Issue #7, (*4)

Documentation

The bulk of the documentation is stored in the Resources/doc/index.md file in this bundle:, (*5)

Read the Documentation, (*6)

Installation

All the installation instructions are located in documentation., (*7)

License

This bundle is under the MIT license. See the complete license in the bundle:, (*8)

Resources/meta/LICENSE

Admin Web Interface

, (*9)

Sending Messages

Send to a User:, (*10)

``` php use DABSquared\PushNotificationsBundle\Message\iOSMessage;, (*11)

class PushDemoController extends Controller { public function pushAction($aUser) {, (*12)

    foreach($aUser->getDevices() as $device) {

        $message = new Message();
        $message->setMessage('Oh my! A push notification!');
        $message->setDevice($device);
        $this->container->get('dab_push_notifications')->send($message);

    }

    return new Response('Push notification send!');
}

}, (*13)


Send to a Device: ``` php use DABSquared\PushNotificationsBundle\Message\iOSMessage; class PushDemoController extends Controller { public function pushAction($aDevice) { $message = new Message(); $message->setMessage('Oh my! A push notification!'); $message->setDevice($aDevice); $this->container->get('dab_push_notifications')->send($message); return new Response('Push notification send!'); } }

Bitdeli Badge, (*14)

The Versions