Giter VIP home page Giter VIP logo

Comments (5)

olucurious avatar olucurious commented on August 24, 2024

Yes, is there any problem with that?
https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support
This parameter specifies a list of devices (registration tokens, or IDs) receiving a multicast message. It must contain at least 1 and at most 1000 registration tokens.

To send to more than 1000 reg ids, we have to do it in chunks

from pyfcm.

michal-michalak avatar michal-michalak commented on August 24, 2024

I am fully aware that we need split it into chunks, but.. the problem is that you won't be able to send remaining 1450 notifications. That will "break" after parsing first response. You should probably append parsed response to list and return that list after for loop.

or should we.. ?

Split it into chunks by yourself and call notify_multiple_devices method 3 times - but that is not the point. Am I right ?

from pyfcm.

olucurious avatar olucurious commented on August 24, 2024

There was a little misunderstanding but I eventually get what you were saying.
It has been fixed in the latest update here https://github.com/olucurious/PyFCM/blob/master/pyfcm/fcm.py#L275, https://github.com/olucurious/PyFCM/blob/master/pyfcm/baseapi.py#L175 and https://github.com/olucurious/PyFCM/blob/master/pyfcm/baseapi.py#L177

Thanks for pointing out the issue.

from pyfcm.

michal-michalak avatar michal-michalak commented on August 24, 2024

Thanks for quick reaction :) but .. there is one more thing. You made similar mistake once again: https://github.com/olucurious/PyFCM/blob/master/pyfcm/baseapi.py#L198
You are returning dict inside for loop, instead of list (that contains parsed dicts) after for loop.

from pyfcm.

olucurious avatar olucurious commented on August 24, 2024

Fixed here https://github.com/olucurious/PyFCM/blob/develop/pyfcm/baseapi.py#L200

I can't appreciate you enough, and it will be helpful if you can help contribute some unit tests.

from pyfcm.

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.