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

feat: Run GCM through FCMv1 HTTP API #455

Merged
merged 3 commits into from
Oct 2, 2023
Merged

Conversation

jrconlin
Copy link
Member

@jrconlin jrconlin commented Oct 2, 2023

This runs GCM messages through the FCMv1 HTTP API (Using existing FCM OAuth credentials, but GCM routing IDs.) This patch is part of an emergency deploy to address 100% GCM failure rates.

Delivery errors for GCM WILL NOT DELETE the GCM route, but will record a metric. This is to prevent potential loss.

It is recommended that this branch be deployed to a canary.

BREAKING CHANGE:
Please alter GCM credentials in AUTOEND__FCM__CREDENTIALS
These should use the same credential set as main FCM channel.
(e.g.

"0123456789" : { "project_id": "0123456789", "credential":"012ABC..."}

should become:

"0123456789": {"project_id": "0123456789", "is_gcm": true, "credential":"{\"type\":\"service_account\",\"project_id\":\"box...\"}"

Issue: Sync-3943

@jrconlin jrconlin requested a review from pjenvey October 2, 2023 17:56
autoendpoint/src/routers/fcm/router.rs Outdated Show resolved Hide resolved
This runs GCM messages through the FCMv1 HTTP API (Using existing FCM
OAuth credentials, but GCM routing IDs.) This patch is part of an
emergency deploy to address 100% GCM failure rates.

Delivery errors for GCM WILL NOT DELETE the GCM route, but will record
a metric. This is to prevent potential loss.

It is recommended that this branch be deployed to a canary.

BREAKING CHANGE:
Please alter GCM credentials in `AUTOEND__FCM__CREDENTIALS`
These should use the same credential set as main FCM channel.
(e.g.
```
"0123456789" : { "project_id": "0123456789", "credential":"012ABC..."}
```
should become:
```
"0123456789": {"project_id": "0123456789", "is_gcm": true, "credential":"{\"type\":\"service_account\",\"project_id\":\"box...\"}"
```
)

Issue: Sync-3943
* use standardized `platform` string for gcm to fcm transmission
@jrconlin jrconlin force-pushed the feat/SYNC-3943_gcm2fcm branch from 62ab285 to 628eade Compare October 2, 2023 20:08
@jrconlin jrconlin merged commit b228227 into master Oct 2, 2023
1 check passed
@jrconlin jrconlin deleted the feat/SYNC-3943_gcm2fcm branch October 2, 2023 20:24
@jrconlin jrconlin mentioned this pull request Oct 2, 2023
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

Successfully merging this pull request may close these issues.

2 participants