Git Product home page Git Product logo

Comments (10)

brozot avatar brozot commented on July 24, 2024 1

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.

timo-meijer avatar timo-meijer commented on July 24, 2024 1

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.

jkunwar avatar jkunwar commented on July 24, 2024 1

i ran into same issue. is there any luck so far.

from laravel-fcm.

brozot avatar brozot commented on July 24, 2024

Sorry but it's unfortunately not supported yet by the package

from laravel-fcm.

ellej16 avatar ellej16 commented on July 24, 2024

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.

brozot avatar brozot commented on July 24, 2024

@timo-meijer Your issue Is it solve by the modification of enniel (commit #20) ?

from laravel-fcm.

sebastiaanluca avatar sebastiaanluca commented on July 24, 2024

@brozot Currently have the same issue. Can you tag a release for this?

from laravel-fcm.

segsalerty2013 avatar segsalerty2013 commented on July 24, 2024

Any luck with this ? doesnt work if i attempt to send FCM to background Job.

from laravel-fcm.

SamerDiab avatar SamerDiab commented on July 24, 2024

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.

niyabhayani avatar niyabhayani commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.