shufo / fcmex

A Firebase Cloud Message client for Elixir
https://hex.pm/packages/fcmex
MIT License
75 stars 24 forks source link

Support for HTTP v1 API #13

Open danielxvu opened 4 years ago

danielxvu commented 4 years ago

Hi,

This seems to be the most popular Elixir library for interfacing with Firebase Cloud Messaging so I thought I'd open a feature request here first. The current Firebase docs recommend that users eventually migrate over to the HTTP v1 API. Are there any plans to add support? Or would you rather accept a pull request?

Thanks for the work!

shufo commented 4 years ago

@danielxvu Thanks for suggestion!

Are there any plans to add support?

Yes, The HTTP v1 API has some feature benefit like below, so it is planned to be implemented.

  • Better security via access tokens
  • More efficient customization of messages across platforms
  • More extendable and future-proof for new client platform versions

Pull Request would also very welcome!

I think it would be better to support both HTTP API and HTTP v1 API because the docs say

Caution: Any apps that use device group messaging may prefer to not upgrade. HTTP v1 does not support this feature of the FCM legacy API.

dorian-marchal commented 9 months ago

Hi, the Legacy HTTP API will soon be deprecated:

API Name API Endpoint Impact on users Action Required
Legacy HTTP protocol API Endpoint Requests to the endpoint will start failing after 6/21/2024. Migrate to the HTTP v1 API.

Is there any plans to support the new v1 API before then?

shufo commented 9 months ago

@dorian-marchal Thanks for notifying me. Yes, I have a plan to support HTTP v1 API. Maybe I will update in next 1 month or 2 month.

dorian-marchal commented 6 months ago

Hello @shufo will you find some time to support the new version, soon, by any chance? Thanks. :bowing_man: