quentin-st / Munin-for-Android-GCM-Proxy

Notifications proxy
0 stars 0 forks source link

Notifications not sent to firebase? #2

Open brknkfr opened 3 years ago

brknkfr commented 3 years ago

Thank you for updating the GCM proxy.

I tried to install my own instance, unfortunately without luck. Steps I did to install my own instance:

  1. I created a firebase project to get a "cloud messaging server key".
  2. I installed Munin-for-Android-GCM-Proxy (with specifying the cloud messaging server key in GCM_API_KEY) with the deploy.sh script.
  3. my-own-instance.tld/ping works (pongs back)
  4. I changed the GCM_PROXY_URL and GCM_PROXY_TEST_URL in const.py on Munin-for-Android-GCM-Trigger and initated a ./main.py --test
  5. Nothing happens ... (No notification on devices.)

I don't know if the message is delivered correctly to GCM or where the problem is.

How can I debug the proxy? What logs are important? Where could be a possible problem? Thank you for any hints.

brknkfr commented 3 years ago

When I try to send a notification via curl with given GCM_API_KEY, I get an error like {"multicast_id":1098288334408535480,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}. Could it be, that GCM proxy is not yet working with "new" server keys and on the main proxy, you still use an "old" server key? (Just a thougth)