mozilla-services / autopush

Python Web Push Server used by Mozilla
https://autopush.readthedocs.io/
Mozilla Public License 2.0
217 stars 34 forks source link

Upgrade GCM/ADM bridges to use twisted async http #1291

Closed jrconlin closed 5 years ago

jrconlin commented 6 years ago

Older code is using the old thread post model. We should standardize from requests.post where possible.

jrconlin commented 6 years ago

see; https://github.com/mozilla-services/autopush/blob/master/autopush/router/webpush.py#L191

pjenvey commented 5 years ago

Reopening as ADM still needs the same treatment

jrconlin commented 5 years ago

:+1: In big ways. I figured doing one bridge at a time would save y'all's sanity.

jrconlin commented 5 years ago

Argh.

Looks like FCM introduced an "HTTP v1" that requires their admin console, a private key and what looks like a suite of HTTP2 calls to perform the actual message sends. Need to figure out the likelihood of them dropping the "legacy" access method in favor of only HTTP v1, if the HTTP/2 access also binds like requests does, and all the other fun things that this may bring.