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

/fcm/send vs /wp is confusing #240

Open
armandn opened this issue Jul 2, 2019 · 0 comments
Open

/fcm/send vs /wp is confusing #240

armandn opened this issue Jul 2, 2019 · 0 comments

Comments

@armandn
Copy link

armandn commented Jul 2, 2019

I just got bit by the issue #201.
The problem is that the subscribed endpoint is 'https://fcm.googleapis.com/fcm/send/...' while the actual used endpoint is 'https://fcm.googleapis.com/wp/...'

After flushing each notification, I want to update the status in the db with the http status code or something like that and the only way I know of is by the endpoint.

At the very least, this replacement should be noted in the docs.

Even better would be a way to obtain the original endpoint.

For now I'll just use $endpoint = str_replace('googleapis.com/wp', 'googleapis.com/fcm/send', $report->getRequest()->getUri()->__toString()); to convert it back, but it's not elegant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant