{"repo":"Edujugon/PushNotification","free":true,"listed":false,"github":"https://github.com/Edujugon/PushNotification","clone":"git clone https://github.com/Edujugon/PushNotification.git","description":"PHP and Laravel Package to send push notifications to Android and IOS devices.","language":"PHP","stars":487,"topics":["laravel","pushnotification","push-notifications","gcm","fcm","apns","notification-channel","laravel-notification-channels"],"license":"MIT","category":"mobile-apps","readme_excerpt":"PushNotification Package This is an easy to use package to send push notification. Push Service Providers Available: GCM FCM APN Installation Laravel version below 5.8 type in console: Laravel 5.8/6 and higher type in console: The package will automatically register its service provider. Publish the package's configuration file to the application's own config directory Go to laravel facade sample directly. Configuration After publishing the configuration, you can find the Push service config in config/pushnotification.php The default configuration parameters for GCM and FCM are : priority = normal dry run = false apiKey = Your ApiKey You can dynamically update those values or adding new ones calling the method setConfig like so: The default configuration parameters for APN are: (Make sure to set dry run to true if you're using development .pem certificate, and false for production) Also you can update those values and add more dynamically Even you may update the url of the Push Service dynamically like follows: Not update the url unless it's really necessary. You can specify the number of client-side attempts to APN before giving up. The default amount is 3 attempts. You can override this value by specifying connection attempts in setConfig() assoc-array. Keep in mind the default number of requested attempts is 3. If you prefer to retry indefinitely, set connection attempts to zero. $push- setConfig([ 'passPhrase' = 'NewPass', 'custom' = 'MycustomValue', 'connection attempts'","default_branch":null,"files":null,"tree":[],"storefront":"/r/Edujugon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Edujugon/PushNotification/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}