Laravel package to enable sending push notifications to devices

Overview

Laravel Push Notification

Package to enable sending push notifications to devices

Installation

Update your composer.json file to include this package as a dependency

Laravel 5 & Lumen

"davibennun/laravel-push-notification": "dev-laravel5"

Laravel 4.*

"davibennun/laravel-push-notification": "dev-master"

Register the PushNotification service provider by adding it to the providers array.

'providers' => array(
	...
	'Davibennun\LaravelPushNotification\LaravelPushNotificationServiceProvider'
)

Alias the PushNotification facade by adding it to the aliases array in the app/config/app.php file.

'aliases' => array(
	...
	'PushNotification' => 'Davibennun\LaravelPushNotification\Facades\PushNotification'
)

Configuration

Copy the config file into your project by running: (Lumen users skip this)

Laravel 5

php artisan vendor:publish --provider="Davibennun\LaravelPushNotification\LaravelPushNotificationServiceProvider" --tag="config"

Laravel 4.*

php artisan config:publish davibennun/laravel-push-notification

This will generate a config file like this

array(
    'appNameIOS'=>array(
		'environment' => 'development',
		'certificate' => '/path/to/certificate.pem',
		'passPhrase'  => 'password',
		'service'     => 'apns'
    ),
    'appNameAndroid'=>array(
		'environment' => 'production',
		'apiKey'      => 'yourAPIKey',
		'service'     => 'gcm'
    )
);

Where all first level keys corresponds to an service configuration, each service has its own properties, android for instance have apiKey and IOS uses certificate and passPhrase. You can set as many services configurations as you want, one for each app.

Dont forget to set service key to identify IOS 'service'=>'apns' and Android 'service'=>'gcm'
The certificate path must be an absolute path, so in the configuration file you can use these:
//Path to the 'app' folder
'certificate'=>app_path().'/myCert.pem'

Laravel functions are also available public_path() storage_path() base_path()

Usage

PushNotification::app('appNameIOS')
                ->to($deviceToken)
                ->send('Hello World, i`m a push message');

Where app argument appNameIOS refers to defined service in config file.

Dynamic configuration and Lumen users

You can set the app config array directly: (keep in mind the array schema)

//iOS app
PushNotification::app(['environment' => 'development',
		'certificate' => '/path/to/certificate.pem',
		'passPhrase'  => 'password',
		'service'     => 'apns']);
//Android app		
PushNotification::app(['environment' => 'production',
		'apiKey'      => 'yourAPIKey',
		'service'     => 'gcm']);

To multiple devices and optioned message:

$devices = PushNotification::DeviceCollection(array(
    PushNotification::Device('token', array('badge' => 5)),
    PushNotification::Device('token1', array('badge' => 1)),
    PushNotification::Device('token2')
));
$message = PushNotification::Message('Message Text',array(
    'badge' => 1,
    'sound' => 'example.aiff',
    
    'actionLocKey' => 'Action button title!',
    'locKey' => 'localized key',
    'locArgs' => array(
        'localized args',
        'localized args',
    ),
    'launchImage' => 'image.jpg',
    
    'custom' => array('custom data' => array(
        'we' => 'want', 'send to app'
    ))
));

$collection = PushNotification::app('appNameIOS')
    ->to($devices)
    ->send($message);

// get response for each device push
foreach ($collection->pushManager as $push) {
    $response = $push->getAdapter()->getResponse();
}

// access to adapter for advanced settings
$push = PushNotification::app('appNameAndroid');
$push->adapter->setAdapterParameters(['sslverifypeer' => false]);

This package is wrapps Notification Package and adds some flavor to it.

Usage advice

This package should be used with Laravel Queues, so pushes dont blocks the user and are processed in the background, meaning a better flow.

Issues
  • Laravel 5 Compatibility

    Laravel 5 Compatibility

    Hello,

    Me and my company are getting ready to integrate Push Notifications into our application. However, we are developing on Laravel 5. Is there an ETA on getting this updated to be compatible with L5?

    Cheers, Andrew

    opened by ellisio 19
  • Lumen support

    Lumen support

    I think this package is a must have for those of us trying to cook Lumen APIs for mobile apps :)

    Thank you for a great package!

    opened by wislem 9
  • How to check notification sent or not

    How to check notification sent or not

    Please tell me how to check notification sent or not

    opened by umairali 8
  • Laravel 5 error

    Laravel 5 error

    I'm getting this error:

    {
        "exception": {
            "type": "Symfony\\Component\\Debug\\Exception\\FatalErrorException",
            "code": 1,
            "message": "Class 'Sly\\NotificationPusher\\Adapter\\' not found",
            "file": "/var/www/reverse-api/vendor/davibennun/laravel-push-notification/src/Davibennun/LaravelPushNotification/App.php",
            "line": 19,
            "stackTrace": []
        }
    }
    

    My composer.json:

    {
        "name": "plugapps/appname",
        "description": "Description here",
        "keywords": ["asdf", "asdf"],
        "license": "MIT",
        "type": "project",
        "require": {
            "laravel/framework": "5.0.*",
            "predis/predis": "~1.0",
                    "aws/aws-sdk-php-laravel": "~2.0",
            "barryvdh/laravel-ide-helper": "~2.0",
                    "barryvdh/laravel-cors": "[email protected]",
                    "tymon/jwt-auth": "dev-laravel-5",
                    "davibennun/laravel-push-notification": "dev-laravel5"
        },
        "require-dev": {
            "phpunit/phpunit": "~4.0",
            "phpspec/phpspec": "~2.1"
        },
        "autoload": {
            "classmap": [
                "database"
            ],
            "psr-4": {
                "Reverse\\": "app/"
            }
        },
        "autoload-dev": {
            "classmap": [
                "tests/TestCase.php"
            ]
        },
        "scripts": {
            "post-install-cmd": [
                "php artisan clear-compiled",
                            "php artisan ide-helper:generate",
                "php artisan optimize"
            ],
            "post-update-cmd": [
                "php artisan clear-compiled",
                "php artisan ide-helper:generate",
                "php artisan optimize"
            ],
            "post-create-project-cmd": [
                "php -r \"copy('.env.example', '.env');\"",
                "php artisan key:generate"
            ]
        },
        "config": {
            "preferred-install": "dist"
        }
    }
    

    Whats happen?

    opened by Maykonn 8
  • Push notification is not being delivered to device

    Push notification is not being delivered to device

    I have followed all steps for configuring the package but I am unable to receive notification on apple device. Here is my server code to send notification; $pn = PushNotification::app('iOS')->to('b2ae8b68fff1fbbe957b8b8f703744794d89f09d45f69b2d847a26c3b064e268')->send('Hello'); dd($pn); // just printed out see whats going on with push manager Here is the dd() function output; screen shot 2016-08-22 at 4 26 43 pm I have added correct certificates for push as well in config file. I really don't get why it is not being delivered.

    opened by tahirwaseer 7
  • Class 'Sly\NotificationPusher\Adapter\' not found

    Class 'Sly\NotificationPusher\Adapter\' not found

    Please can you help me figure that thing out. I am using laravel 4.1

    opened by ghost 7
  • sslcafile and ssclapath issue

    sslcafile and ssclapath issue

    Hello!

    I am receiving this error only in Android (iOS is working well).

    'Zend\Http\Client\Adapter\Exception\RuntimeException' with message 'Unable to enable crypto on TCP connection android.googleapis.com: make sure the "sslcafile" or "sslcapath" option are properly set for the environment.' in /home/casper/development/vendor/zendframework/zend-http/Zend/Http/Client/Adapter/Socket.php:310

    Do you know how to solve it? I've been googling a little bit but I haven't found a proper solution.

    Thank you very much! :D

    opened by juanjolainez 7
  • Your four hours ago changes is giving me error during composer installation

    Your four hours ago changes is giving me error during composer installation

    I just try pushing my code base to my hosting provider and I got an error. That your package requires php version 5.4.0 but when I change my php version, the push command hangs and indicates it cannot find php command, Pagoda Box is my hosting provider, my request is can you give me the version number for the previous one before these changes today. I am using laravel 4.1

    opened by ghost 6
  • Question: Does this work for Laravel 4.1.x?

    Question: Does this work for Laravel 4.1.x?

    I get an issue when trying to install for Laravel 4.1.x:

    Problem 1
    - zendframework/zend-json dev-develop requires zendframework/zend-stdlib dev-develop -> no matching package found.
    - sly/notification-pusher v2.2.4 requires zendframework/zendservice-google-gcm 1.* -> satisfiable by zendframework/zendservice-google-gcm[1.0.1].
    - zendframework/zendservice-google-gcm 1.0.1 requires zendframework/zend-json >=2.0.0 -> satisfiable by zendframework/zend-json[2.3.x-dev].
    - davibennun/laravel-push-notification dev-master requires sly/notification-pusher 2.* -> satisfiable by sly/notification-pusher[v2.2.4].
    - remove zendframework/zend-json 2.3.x-dev|keep zendframework/zend-json dev-develop

    • Installation request for davibennun/laravel-push-notification dev-master -> satisfiable by davibennun/laravel-push-notification[dev-master].
    opened by domtancredi 6
  • how to set optional parameters in Android GCM

    how to set optional parameters in Android GCM

    I am trying to set keys like "collapseKey" and "delayWhileIdle" in GCM . I have no idea how to set those keys . This is how I set keys .

    $message = PushNotification::Message($msg,array(
                'msgcnt'=> 1,
                'title'=>$event->title,
                'collapseKey' => 'invited' 
    ));
    
    

    According to this collaposeKey is not working . And it is also inside payload of GCM instead . any idea ? thanks

    opened by sannysinghs 5
  • No receiving push to ios device

    No receiving push to ios device

    When sending push from server it doesn't delivers to ios device but works in android, i tried via pushtry.com it went through it but not from server @davibennun

    opened by sarveshamrit 21
  • HTTP/2 support

    HTTP/2 support

    Is this package have HTTP/2 support ?

    opened by zcopeertech 2
  • Update composer.json

    Update composer.json

    composer.json modified to work with laravel 6

    opened by AliAlican 0
  • Laravel 6 Support

    Laravel 6 Support

    I am trying to install in laravel 6 but its showing below error.

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Conclusion: remove laravel/framework v6.0.3
        - Conclusion: don't install laravel/framework v6.0.3
        - Conclusion: don't install laravel/framework v6.0.2
        - Installation request for davibennun/laravel-push-notification dev-laravel5 -> satisfiable by davibennun/laravel-push-notification[dev-laravel5].
        - Conclusion: don't install laravel/framework v6.0.1
        - Conclusion: don't install laravel/framework v6.0.0
        - davibennun/laravel-push-notification dev-laravel5 requires illuminate/support 5.* -> satisfiable by illuminate/support[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9].
        - don't install illuminate/support 5.5.x-dev|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.6.x-dev|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.7.17|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.7.18|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.7.19|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.7.x-dev|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.8.x-dev|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.0|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.16|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.17|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.2|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.28|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.33|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.34|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.35|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.36|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.37|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.39|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.40|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.41|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.43|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.5.44|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.0|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.1|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.10|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.11|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.12|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.13|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.14|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.15|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.16|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.17|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.19|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.2|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.20|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.21|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.22|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.23|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.24|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.25|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.26|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.27|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.28|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.29|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.3|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.30|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.31|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.32|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.33|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.34|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.35|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.36|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.37|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.38|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.39|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.4|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.5|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.6|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.7|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.8|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.6.9|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.0|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.1|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.10|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.11|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.15|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.2|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.20|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.21|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.22|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.23|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.26|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.27|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.28|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.3|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.4|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.5|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.6|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.7|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.8|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.7.9|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.0|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.11|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.12|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.14|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.15|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.17|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.18|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.19|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.2|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.20|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.22|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.24|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.27|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.28|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.29|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.3|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.30|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.31|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.32|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.33|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.34|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.35|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.4|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.8|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.8.9|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.1.x-dev|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.2.x-dev|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.3.x-dev|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.4.x-dev|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.1|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.13|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.16|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.2|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.20|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.22|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.25|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.28|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.30|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.31|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.41|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.6|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.1.8|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.0|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.19|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.21|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.24|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.25|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.26|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.27|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.28|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.31|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.32|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.37|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.43|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.45|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.6|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.2.7|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.3.0|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.3.16|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.3.23|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.3.4|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.4.0|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.4.13|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.4.17|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.4.19|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.4.27|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.4.36|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.4.9|don't install laravel/framework 6.x-dev
        - don't install illuminate/support 5.0.x-dev|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.0.0|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.0.22|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.0.25|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.0.26|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.0.28|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.0.33|don't install laravel/framework 6.x-dev
        - don't install illuminate/support v5.0.4|don't install laravel/framework 6.x-dev
        - Installation request for laravel/framework ^6.0 -> satisfiable by laravel/framework[6.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3].
    
    
    opened by umairali 1
  •  Unable to connect: tls://gateway.sandbox.push.apple.com:2195: 2 (stream_socket_client(): unable to connect to tls://gateway.sandbox.push.apple.com:2195 (Connection refused))

    Unable to connect: tls://gateway.sandbox.push.apple.com:2195: 2 (stream_socket_client(): unable to connect to tls://gateway.sandbox.push.apple.com:2195 (Connection refused))

    ZendService \ Apple \ Exception \ RuntimeException Unable to connect: tls://gateway.sandbox.push.apple.com:2195: 2 (stream_socket_client(): unable to connect to tls://gateway.sandbox.push.apple.com:2195 (Connection refused))

    opened by surjit-logiciel 0
  • Unable to connect: tls://gateway.push.apple.com:2195: 2

    Unable to connect: tls://gateway.push.apple.com:2195: 2

    Unable to connect: tls://gateway.push.apple.com:2195: 2 (stream_socket_client(): Unable to set local cert chain file `Certif/ainayatiPush12.p12'; Check that your cafile/capath settings include details of your certificate and its issuer)

    opened by AymenBouein 1
  • FCM not working

    FCM not working

    Below is my code for FCM I tested it on an app a while and it worked like a charm but now for some reason, it's not working, can anyone of you help?

    $androidDevices[] = PushNotification::Device($user->device_token);
    $androidDevicesNotify = PushNotification::DeviceCollection($androidDevices);
    $data = [
        'title' => "AppName",
        'body'  => 'You have a new request from User',
        'custom'  => [
            'request_id' => 1
        ]
    ];
    $message = PushNotification::Message('You have a new request from User', $data);
    $androidCollection = PushNotification::app('AppAndroid');
    $androidCollection->adapter->setAdapterParameters(['sslverifypeer' => false]);
    $androidCollection->to($androidDevicesNotify)->send($message);
    
    opened by mubassirhayat 1
  • iOS Rich Push Notifications are not possible to implement.

    iOS Rich Push Notifications are not possible to implement.

    Seems like there is no way at all to implement rich push notifications with this repo. I tried for days and then moved on to another package which works well. Will this repo be updated to accomodate for rich push at all?

    opened by Varin6 0
  • Laravel 5.5.33 push-notification.php not generating

    Laravel 5.5.33 push-notification.php not generating

    Hi

    In Laravel 5.5.33 push-notification.php not generating in config file though after running php artisan vendor:publish --provider="Davibennun\LaravelPushNotification\LaravelPushNotificationServiceProvider" --tag="config"

    opened by mavinothkumar 2
Owner
Davi Nunes
Davi Nunes
Send push notifications to apple devices (iPhone, iPad, iPod).

Apple Apn Push Send push notifications to apple devices (iPhone, iPad, iPod). Support authenticators: Certificate Json Web Token Supported protocols:

Vitaliy Zhuk 149 Dec 7, 2021
Larafirebase is a package thats offers you to send push notifications or custom messages via Firebase in Laravel.

Introduction Larafirebase is a package thats offers you to send push notifications or custom messages via Firebase in Laravel. Firebase Cloud Messagin

Kutia Software Company 201 Jan 13, 2022
Push Notifications using Laravel

laravel-push-notification Push Notifications using Laravel PushNotification::send(['deviceToken1', 'deviceToken2',..], 'Notification Message', 'Action

Webelight Solutions 24 Jan 13, 2022
Takes care of Apple push notifications (APNS) in your PHP projects.

Notificato Notificato takes care of push notifications in your PHP projects. Italian: notificato è: participio passato English: notified Why use Notif

Mathijs Kadijk 220 Aug 18, 2021
A PHP Library to easily send push notifications with the Pushwoosh REST Web Services.

php-pushwoosh A PHP Library to easily send push notifications with the Pushwoosh REST Web Services. First sample, creating a Pushwoosh message // Crea

gomoob 62 Jan 4, 2022
Push notifications Library for PHP

Push notifications Library for PHP Supported Protocols Protocol Supported Driver Options APNs (Token Based) ✓ APNs\Token APNs\Token\Option APNs (Certi

Norifumi SUNAOKA 2 Dec 1, 2021
Takes care of Apple push notifications (APNS) in your PHP projects.

Notificato Notificato takes care of push notifications in your PHP projects. Italian: notificato è: participio passato English: notified Why use Notif

Mathijs Kadijk 220 Aug 18, 2021
ApnsPHP: Apple Push Notification & Feedback Provider

ApnsPHP: Apple Push Notification & Feedback Provider A full set of open source PHP classes to interact with the Apple Push Notification service for th

Immobiliare Labs 1.4k Jan 2, 2022
Laravel package to launch toast notifications.

Laravel package to launch toast notifications. This package provides assistance when using toast notifications. Using the iziTOAST package, which allo

Anthony Medina 3 Aug 31, 2021
A package to simplify automating future notifications and reminders in Laravel

Laravel Snooze Schedule future notifications and reminders in Laravel Why use this package? Ever wanted to schedule a future notification to go out at

Thomas Kane 599 Jan 11, 2022
This package allows you to send notifications to Microsoft Teams.

Teams connector This package allows you to send notifications to Microsoft Teams. Installation You can install the package using the Composer package

skrepr 16 Jan 12, 2022
Implementations for different SMS providers for EspoCRM. Can be used for 2-factor authentication or automatic SMS sending via Workflow and BPM tools.

SMS Providers for EspoCRM An installable extension. Supported SMS Providers Twilio Spryng sms77 Setting up Install the extension. At Administration >

EspoCRM - Open Source CRM 6 Dec 14, 2021
Laravel Security Notifications

This package adds security notifications to warn your users when significant security events occur so that they aren't the next victim of an attacker.

Anteris 5 Dec 24, 2021
Laravel Subscribable Notifications

Laravel Subscribable Notifications This package allows you to subscribe your app Users to your app Notifications and dispatch them without specifying

Andrés Santibáñez 120 Jan 5, 2022
Flexible Flash notifications for Laravel

Introduction Laravel Notify is a package that lets you add custom notifications to your project. A diverse range of notification design is available.

Arthur Monney 1k Jan 11, 2022
📨 Facebook Notifications Channel for Laravel

Facebook Notifications Channel for Laravel This package makes it easy to send notifications using the Facebook Messenger with Laravel. Contents Instal

Laravel Notification Channels 134 Jan 12, 2022
✈️ Whatsapp Notifications Channel for Laravel

Whatsapp Notifications Channel for Laravel This package makes it easy to send Whatsapp notification using Venom API with Laravel. This package was cre

Felipe Damaceno Teodoro 31 Jan 18, 2022
:computer: Send notifications to your desktop directly from your PHP script

About JoliNotif JoliNotif is a cross-platform PHP library to display desktop notifications. It works on Linux, Windows or MacOS. Requires PHP >= 7.2 (

JoliCode 1.2k Jan 13, 2022
A very lightweight library to handle notifications the smart way.

NAMSHI | Notificator Notificator is a very simple and lightweight library to handle notifications the smart way. It took inspiration from other librar

Namshi 186 Sep 26, 2021