Open aap17 opened 2 weeks ago
I had to also add access_token_auth
header for topic subscription.
https://iid.googleapis.com/iid/v1/nKctODamlM4:CKrh_PC8kIb7O...clJONHoA/rel/topics/movies Content-Type:application/json Content-Length: 0 Authorization: Bearer ya29.ElqKBGN2Ri_Uz...HnS_uNreA access_token_auth: true
I have fixed it in my fork. https://github.com/aap17/fcm_v1
I would be happy if someone will update it here
Also migrated send_to_topic_condition https://github.com/aap17/fcm_v1/pull/1
it seems the latest library version works with legacy API for requests with topic
No Bearer token inside connection, the request fails with error "Authentication using server key is depricated..."
But push messages works perfect with direct sending, it was fixed with V1 Bearer auth type: