Comments (3)
One way would be to register an event listener on the kernel.terminate
event, and send your notifications there (since this event is triggered when the kernel is shutting down, after a response has been sent).
You could also shift these notifications into some kind of process queue and handle them in the background (cron task, queue eg rabbitmq and similar).
There are a few options :-)
from rmspushnotificationsbundle.
Hello @richsage,
Thank you for your comment.
I would like to register an event listener on the kernel.terminate event (as you said before) for the following function "public function sendPushNotificationsAction() { ... return new Response() }" : how should I proceed ?
Thank you in advance,
Wanty
from rmspushnotificationsbundle.
You might want to take a look at the Symfony docs for the kernel.terminate event
from rmspushnotificationsbundle.
Related Issues (20)
- How to set title on iOS Push message? HOT 2
- Cannot send localized notifications HOT 1
- Support for Firebase Cloud Messaging HOT 7
- unpack() in AppleNotificaion produces a notice HOT 1
- Is this project still maintained ? HOT 1
- Notify IOS Devices Via GCM
- FCN Notifications trouble HOT 1
- Android GCM :: How to detect the need to remove the DeviceToken/DeviceRegId from my database with the bundle? HOT 2
- Support for Web Push Notifications? HOT 1
- Bundle maintained and manage Firebase message HOT 4
- Support for APN Auth Key
- Response null when sending an Android push notification
- Does this bundle currently support FCM? HOT 6
- app.ERROR: {"command":8,"status":7,"identifier":0} HOT 1
- Breaks with Buzz v0.17.x HOT 7
- Send within doctrine.onFlush listener
- Command rms:test-push is not available in Symfony>=4
- [app] {"command":8,"status":8,"identifier":0}
- Issues with objects in Android Notifications
- Apple HTTP/2 APNS -- push notification support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmspushnotificationsbundle.