Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Registered in Results => remove device_id #52

Open
hniehorster opened this issue Feb 8, 2022 · 3 comments
Open

Not Registered in Results => remove device_id #52

hniehorster opened this issue Feb 8, 2022 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@hniehorster
Copy link

hniehorster commented Feb 8, 2022

Hey,

@EdwinHoksberg thanks for the Github! Really love it!

We have users with a lot of devices, and we send messages to all of them. The results have error's and message ID's. But whenever there is a error I would like to know what device_id is no longer registered. Is this possible?

Here is the part of the response.

    "multicast_id": 1152899987548651788,
    "success": 16,
    "failure": 10,
    "canonical_ids": 0,
    "results": [
        {
            "error": "NotRegistered"
        },
        {
            "message_id": "1644310512120583"
        },
        {
            "error": "NotRegistered"
        },
        {
            "message_id": "1644310512135715"
        }
 ]
}```
@github-actions
Copy link

github-actions bot commented Feb 8, 2022

Thanks for creating your first issue on php-fcm

@AndyGaskell
Copy link
Collaborator

Hi Hjalte @hniehorster
Thanks for raising this issue and for getting involved. It's great you like the package.
At the moment, the only way to do this is to send one push at a time. We've been trying to figure out a way of returning responses that can explain partial success / partial failure, but we've not quite decided the best option yet.
We'll try and come up with a solution soon, any ideas or suggestions would be awesome.
Thanks
Andy

@AndyGaskell AndyGaskell added the help wanted Extra attention is needed label Mar 1, 2022
@AndyGaskell AndyGaskell pinned this issue Mar 1, 2022
@AndyGaskell AndyGaskell unpinned this issue Mar 1, 2022
@rolinger
Copy link
Collaborator

@AndyGaskell - last time I got my hands dirty with this package I recall that FCM didn't return errors for bad device IDs. In my apps FCM simply just pulls a new device pushID from the device itself if the current one has expired. But I don't recall being able to retrieve status per device ID. Has this changed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants