Comments (10)
Hi @ellej16,
The the package doesn't work out of the box with Laravel Job. It is because when notification is send an response is provide by Firebase Cloud messaging with errors and invalid tokens. This response need to be processed by the application and saved in the database.
I think it's possible to wrap Laravel FCM in a job, but I have never tried to do that.
If you want to try to do it, I will be happy to have your feedback and if you need helping you
Best Regards
from laravel-fcm.
I ran into a problem while working with the project and laravel jobs, after some debugging I found the following problem.
The DownstreamResponse has a logging function which crashed because it didn't have the permission to write.
I thought I had disabled the logging by going to the config/fcm and putting the log_enabled on false. But the log_enabled is never used with in project (atleast I couldn't find it).
Maybe you could implement the log_enabled to enable/disable to logging within the DownstreamResponse?
from laravel-fcm.
i ran into same issue. is there any luck so far.
from laravel-fcm.
Sorry but it's unfortunately not supported yet by the package
from laravel-fcm.
Hi @brozot , @DesmondPang ! Just curious , what do you meant by "sending the notification in background task" ? Are you guys referring to Laravel's Job class (Which was my assumption)?
Also, why doesn't it run on such?
Genuinely curious as I'm about to use this for a project.
Thanks!
from laravel-fcm.
@timo-meijer Your issue Is it solve by the modification of enniel (commit #20) ?
from laravel-fcm.
@brozot Currently have the same issue. Can you tag a release for this?
from laravel-fcm.
Any luck with this ? doesnt work if i attempt to send FCM to background Job.
from laravel-fcm.
Hi, so instead of looking into the package itself for a background solution, you can build a solution around it. For example in an api, create handles to update fcm token reguraly, and send bulk in the background with no regard of the response. And if data is that important, you can use google analytics to know exactly the consumption.
from laravel-fcm.
Any luck? doesn't work if i'm using with queue connection database.
if i'm using connection sync it work fine.
from laravel-fcm.
Related Issues (20)
- Laravel 7 Not Supported HOT 4
- Notification sound not working HOT 3
- Support guzzle 7.0
- send notification issue
- Change the connection on the fly
- SnederId Mismatch
- Lumen - Unable to resolve NULL driver for [LaravelFCM\FCMManager]. HOT 1
- onMessage payload not working HOT 1
- Laravel 8 HOT 6
- How to add badge on push notification using brozot/Laravel-FCM
- How to test FCM::sendTo with Feature test HOT 4
- Laravel 8 supported or not?(php 8) HOT 6
- How to send FCMGroup?
- Find exact error code or error message in responce
- How to add small icon on the right side of the notification.
- Not working on iOS devices HOT 2
- Your requirements could not be resolved to an installable set of packages. HOT 4
- Not compatible with guzzle ~7.0 HOT 1
- Not support in Laravel 9 HOT 1
- Not Support In Laravel 10 HOT 1
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 laravel-fcm.