2017 © Pedro PelĂĄez
 

symfony-bundle notifications-bundle

A bundle to send notifications from server.

image

relief_applications/notifications-bundle

A bundle to send notifications from server.

  • Wednesday, July 25, 2018
  • by developer2reliefapps
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 105 % Grown

The README.md

Notifications Bundle

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*1)

$ composer require relief_applications/notifications-bundle

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*2)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new RA\NotificationsBundle\RANotificationsBundle(),
        );

        // ...
    }

    // ...
}

 Step 3 : Configure the Bundle

In your project, add at the end of the file app/config/config.yml the following configuration :, (*3)

ra_notifications:
    android:
        server_key: "%android_server_key%"
        fcm_server: "%android_fcm_server%"
    ios:
        push_passphrase: '%ios_push_passphrase%'
        push_certificate: 'null'
        apns_server: '%ios_apns_server%'
    device:
        class: YourBundle\Entity\Device
    contexts:
        ctx_1:
            ios:
                push_certificate: /var/ioskeys/crises.pem
                apns_topic: topic_name1
        ctx_2:
            ios:
                push_certificate: /var/ioskeys/americas.pem
                apns_topic: topic_name2

Optional (but recommended) :, (*4)

For improved error management for iOS notifications, you will need http2 support for cURL on your machine. See this tutorial., (*5)

Once you have followed this tutorial, check that cURL supports HTTP/2 by running :, (*6)

$ curl --http2 -I https://nghttp2.org/

If it works, you can remove the line :, (*7)

            protocol: legacy

in your app/config/config.yml file., (*8)

The Versions

25/07 2018

1.0.0.x-dev

1.0.0.9999999-dev

A bundle to send notifications from server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar alain

symfony push notifications

25/07 2018

1.0.1.x-dev

1.0.1.9999999-dev

A bundle to send notifications from server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar alain

symfony push notifications

25/07 2018

1.0.1

1.0.1.0

A bundle to send notifications from server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar alain

symfony push notifications

25/07 2018

dev-master

9999999-dev

A bundle to send notifications from server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar alain

symfony push notifications

25/07 2018

1.0.0

1.0.0.0

A bundle to send notifications from server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar alain

symfony push notifications